Ejemplo n.º 1
0
    def test_count_indents_last_line(self):
        MAT = SourceString('Test100\n  test\n  more')

        assert MAT.count_indents_last_line(2) == 0
        MAT.eat_length(8)
        assert MAT.count_indents_last_line(2) == 0
        MAT.eat_length(7)
        assert MAT.count_indents_last_line(2) == 1