| Revision 136,
698 bytes
checked in by xi, 7 years ago
(diff) |
|
Major refactoring.
|
| Line | |
|---|
| 1 | |
|---|
| 2 | import test_appliance |
|---|
| 3 | |
|---|
| 4 | class TestCanonicalAppliance(test_appliance.TestAppliance): |
|---|
| 5 | |
|---|
| 6 | def _testCanonicalScanner(self, test_name, canonical_filename): |
|---|
| 7 | data = file(canonical_filename, 'rb').read() |
|---|
| 8 | tokens = list(test_appliance.canonical_scan(data)) |
|---|
| 9 | #for token in tokens: |
|---|
| 10 | # print token |
|---|
| 11 | |
|---|
| 12 | def _testCanonicalParser(self, test_name, canonical_filename): |
|---|
| 13 | data = file(canonical_filename, 'rb').read() |
|---|
| 14 | event = list(test_appliance.canonical_parse(data)) |
|---|
| 15 | #for event in events: |
|---|
| 16 | # print event |
|---|
| 17 | |
|---|
| 18 | TestCanonicalAppliance.add_tests('testCanonicalScanner', '.canonical') |
|---|
| 19 | TestCanonicalAppliance.add_tests('testCanonicalParser', '.canonical') |
|---|
| 20 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.