4 class TestCanonicalAppliance(test_appliance
.TestAppliance
):
6 def _testCanonicalScanner(self
, test_name
, canonical_filename
):
7 data
= file(canonical_filename
, 'rb').read()
8 tokens
= list(test_appliance
.canonical_scan(data
))
12 def _testCanonicalParser(self
, test_name
, canonical_filename
):
13 data
= file(canonical_filename
, 'rb').read()
14 event
= list(test_appliance
.canonical_parse(data
))
18 TestCanonicalAppliance
.add_tests('testCanonicalScanner', '.canonical')
19 TestCanonicalAppliance
.add_tests('testCanonicalParser', '.canonical')