Exemple #1
0
 def test_4_3(self):
     assert _is_delim_indented_line('comment\n',
                                    3, '*', False, (2, 2, 2)) == False
     assert _is_delim_indented_line(' *comment\n',
                                    3, '*', False, (2, 2, 2)) == False
     assert _is_delim_indented_line(' * comment\n',
                                    3, '*', False, (2, 2, 2)) == True
     assert _is_delim_indented_line(' *\n',
                                    3, '*', False, (2, 2, 2)) == True
Exemple #2
0
 def test_4_3(self):
     assert _is_delim_indented_line('comment\n', 3, '*', False,
                                    (2, 2, 2)) == False
     assert _is_delim_indented_line(' *comment\n', 3, '*', False,
                                    (2, 2, 2)) == False
     assert _is_delim_indented_line(' * comment\n', 3, '*', False,
                                    (2, 2, 2)) == True
     assert _is_delim_indented_line(' *\n', 3, '*', False,
                                    (2, 2, 2)) == True
Exemple #3
0
 def test_4_4(self):
     assert _is_delim_indented_line('*/',
                                    3, '*', True, (2, 2, 2)) == False
     assert _is_delim_indented_line(' */',
                                    3, '*', True, (2, 2, 2)) == True
Exemple #4
0
 def test_4_4(self):
     assert _is_delim_indented_line('*/', 3, '*', True, (2, 2, 2)) == False
     assert _is_delim_indented_line(' */', 3, '*', True, (2, 2, 2)) == True