Пример #1
0
 def test_has_matching_tag(self):
     """
     Test our Beautiful Soup tag attribute method
     """
     
     page = Page('http://www.contenthere.net')
     self.assertTrue(page.has_matching_tag('div', {'id':'header', 'class':'row'}))
     self.assertFalse(page.has_matching_tag('div', {'id':'content', 'class':'foo'}))