Beispiel #1
0
 def test_strip_trailing_ws(self):
     SRC = SourceLine('test \n', 0)
     assert repr(SRC) == 'test \n'
     SRC.strip_trailing_ws()
     assert repr(SRC) == 'test'
Beispiel #2
0
 def test_get_last_char(self):
     SRC = SourceLine('    test\n', 0)
     assert SRC.get_last_char() == 't'