def test_newline(self): self.assertEqual("", is_comment_in_yaml('\n'))
def test_no_comment(self): self.assertEqual("", is_comment_in_yaml('hello world'))
def test_mixed_quotes2(self): self.assertEqual("#dog", is_comment_in_yaml('"asa#cats"asdfdfsdf#dog'))
def test_empty(self): self.assertEqual("", is_comment_in_yaml(''))
def test_mixed_quotes(self): self.assertEqual("#cat", is_comment_in_yaml("'asdf#assd'#cat"))
def test_single_quotes(self): self.assertEqual("#hello", is_comment_in_yaml('"asdf"#hello'))
def test_quotes(self): self.assertEqual("#hello", is_comment_in_yaml("'a'#hello"))
def test_end_of_string(self): self.assertEqual("#hello", is_comment_in_yaml("asdfasdfasdf#hello"))
def test_basic(self): self.assertEqual("#hello", is_comment_in_yaml("#hello"))