示例#1
0
 def test_parse_comments_deleted(self):
     soup = BeautifulSoup("<span class='comhead'>Story title</span>"
                          "<span class='comhead'></span>"
                          "<span class='comment'>I comment</span>")
     self.assertListEqual([], parsers._parse_comments(soup))
示例#2
0
 def test_parse_comments_deleted(self):
     soup = BeautifulSoup("<span class='comhead'>Story title</span>"
                          "<span class='comhead'></span>"
                          "<span class='comment'>I comment</span>")
     self.assertListEqual([], parsers._parse_comments(soup))
示例#3
0
 def test_parse_comments_no_comments(self):
     self.assertIsNone(parsers._parse_comments(BeautifulSoup()))
示例#4
0
 def test_parse_comments_no_comments(self):
     self.assertIsNone(parsers._parse_comments(BeautifulSoup()))