Commit 7344d278 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

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

parent ce546ddd
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment