Example #1
0
 def test_4_1(self):
     assert _is_space_indented_line('comment\n',
                                    3, '*', False, (2, 2, 2)) == False
     assert _is_space_indented_line('  comment\n',
                                    3, '*', False, (2, 2, 2)) == False
     assert _is_space_indented_line('   comment\n',
                                    3, '*', False, (2, 2, 2)) == True
Example #2
0
 def test_4_1(self):
     assert _is_space_indented_line('comment\n', 3, '*', False,
                                    (2, 2, 2)) == False
     assert _is_space_indented_line('  comment\n', 3, '*', False,
                                    (2, 2, 2)) == False
     assert _is_space_indented_line('   comment\n', 3, '*', False,
                                    (2, 2, 2)) == True
Example #3
0
 def test_4_2(self):
     assert _is_space_indented_line('*/',
                                    3, '*', True, (2, 2, 2)) == True
     assert _is_space_indented_line(' */',
                                    3, '*', True, (2, 2, 2)) == True
Example #4
0
 def test_4_2(self):
     assert _is_space_indented_line('*/', 3, '*', True, (2, 2, 2)) == True
     assert _is_space_indented_line(' */', 3, '*', True, (2, 2, 2)) == True