def test__invalid_delimiter_returns_false_3(self):
     line = '"""something'
     expected = False
     result = parse.comment_delimiter(line)
     self.assertEqual(expected, result)
 def test__can_tolerate_comment_1(self):
     line = '"""#coment'
     expected = True
     result = parse.comment_delimiter(line)
     self.assertEqual(expected, result)
 def test__delimiter_can_be_parsed__one_indentation_with_tab(self):
     line = '\t"""'
     expected = True
     result = parse.comment_delimiter(line)
     self.assertEqual(expected, result)
 def test__delimiter_can_be_parsed__two_indentations__tailing_indentations_ignored(
         self):
     line = '  """                    \t\t\t   '
     expected = True
     result = parse.comment_delimiter(line)
     self.assertEqual(expected, result)
示例#5
0
 def test__cant_tolerate_comment(self):
     line = '#"""'
     expected = False
     result = parse.comment_delimiter(line)
     self.assertEqual(expected, result)
 def test__delimiter_can_be_parsed__zero_indentation(self):
     line = '"""'
     expected = True
     result = parse.comment_delimiter(line)
     self.assertEqual(expected, result)
示例#7
0
 def test__can_tolerate_comment_3(self):
     line = '"""  #      coment'
     expected = True
     result = parse.comment_delimiter(line)
     self.assertEqual(expected, result)
示例#8
0
 def test__invalid_delimiter_returns_false_3(self):
     line = '"""something'
     expected = False
     result = parse.comment_delimiter(line)
     self.assertEqual(expected, result)
示例#9
0
 def test__delimiter_can_be_parsed__two_indentations__tailing_indentations_ignored(self):
     line = '  """                    \t\t\t   '
     expected = True
     result = parse.comment_delimiter(line)
     self.assertEqual(expected, result)
示例#10
0
 def test__delimiter_can_be_parsed__one_indentation_with_tab(self):
     line = '\t"""'
     expected = True
     result = parse.comment_delimiter(line)
     self.assertEqual(expected, result)
示例#11
0
 def test__delimiter_can_be_parsed__zero_indentation(self):
     line = '"""'
     expected = True
     result = parse.comment_delimiter(line)
     self.assertEqual(expected, result)