Ignore:
Timestamp:
03/18/06 08:37:09 (9 years ago)
Author:
xi
Message:

Back to work :). Rename markers to marks.

File:
1 moved

Legend:

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

    r47 r116  
    22import test_appliance 
    33 
    4 from yaml.reader import Marker 
     4from yaml.reader import Mark 
    55 
    6 class TestMarker(test_appliance.TestAppliance): 
     6class TestMark(test_appliance.TestAppliance): 
    77 
    8     def _testMarkers(self, test_name, markers_filename): 
    9         inputs = file(markers_filename, 'rb').read().split('---\n')[1:] 
     8    def _testMarks(self, test_name, marks_filename): 
     9        inputs = file(marks_filename, 'rb').read().split('---\n')[1:] 
    1010        for input in inputs: 
    1111            index = 0 
     
    1919                    column += 1 
    2020                index += 1 
    21             marker = Marker(test_name, line, column, unicode(input), index) 
    22             snippet = marker.get_snippet(indent=2, max_length=79) 
     21            mark = Mark(test_name, line, column, unicode(input), index) 
     22            snippet = mark.get_snippet(indent=2, max_length=79) 
    2323            #print "INPUT:" 
    2424            #print input 
     
    3131            self.failUnlessEqual(data[len(pointer)-1], '*') 
    3232 
    33 TestMarker.add_tests('testMarkers', '.markers') 
     33TestMark.add_tests('testMarks', '.marks') 
    3434 
Note: See TracChangeset for help on using the changeset viewer.