Ignore:
Timestamp:
04/15/06 19:54:52 (8 years ago)
Author:
xi
Message:

Major refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/tests/test_canonical.py

    r51 r136  
    66    def _testCanonicalScanner(self, test_name, canonical_filename): 
    77        data = file(canonical_filename, 'rb').read() 
    8         scanner = test_appliance.CanonicalScanner(data) 
    9         tokens = scanner.scan() 
     8        tokens = list(test_appliance.canonical_scan(data)) 
    109        #for token in tokens: 
    1110        #    print token 
     
    1312    def _testCanonicalParser(self, test_name, canonical_filename): 
    1413        data = file(canonical_filename, 'rb').read() 
    15         parser = test_appliance.CanonicalParser(data) 
    16         events = parser.parse() 
     14        event = list(test_appliance.canonical_parse(data)) 
    1715        #for event in events: 
    1816        #    print event 
Note: See TracChangeset for help on using the changeset viewer.