Exemple #1
0
 def test_newline(self):
     self.assertEqual("", is_comment_in_yaml('\n'))
Exemple #2
0
 def test_no_comment(self):
     self.assertEqual("", is_comment_in_yaml('hello world'))
Exemple #3
0
 def test_mixed_quotes2(self):
     self.assertEqual("#dog", is_comment_in_yaml('"asa#cats"asdfdfsdf#dog'))
Exemple #4
0
 def test_empty(self):
     self.assertEqual("", is_comment_in_yaml(''))
Exemple #5
0
 def test_mixed_quotes(self):
     self.assertEqual("#cat", is_comment_in_yaml("'asdf#assd'#cat"))
Exemple #6
0
 def test_single_quotes(self):
     self.assertEqual("#hello", is_comment_in_yaml('"asdf"#hello'))
Exemple #7
0
 def test_quotes(self):
     self.assertEqual("#hello", is_comment_in_yaml("'a'#hello"))
Exemple #8
0
 def test_end_of_string(self):
     self.assertEqual("#hello", is_comment_in_yaml("asdfasdfasdf#hello"))
Exemple #9
0
 def test_basic(self):
     self.assertEqual("#hello", is_comment_in_yaml("#hello"))