Ejemplo n.º 1
0
    def test_get_current_line(self):
        SRC = SourceString('hello\nworld\nthis\nis\na\ntest')

        assert repr(SRC.get_current_line()) == 'hello\n'
        SRC.eat_string('hello\n')
        assert repr(SRC.get_current_line()) == 'world\n'