Browse Source

[1333r] one more test: check the journal reader cannot be constructed directly.

JINMEI Tatuya 13 years ago
parent
commit
7344d2788c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/python/isc/datasrc/tests/datasrc_test.py

+ 4 - 0
src/lib/python/isc/datasrc/tests/datasrc_test.py

@@ -779,6 +779,10 @@ class JournalRead(unittest.TestCase):
         self.assertRaises(TypeError, self.dsc.get_journal_reader,
                           self.zname, 0, 'must be int')
 
+    def test_journal_reader_direct_construct(self):
+        # ZoneJournalReader can only be constructed via a factory
+        self.assertRaises(TypeError, ZoneJournalReader)
+
 if __name__ == "__main__":
     isc.log.init("bind10")
     isc.log.resetUnitTestRootLogger()