Пример #1
0
 def test_has_tag_containing(self):
     """
     Tests our Beautiful Soup tag containing method
     """
     page = Page('http://www.contenthere.net')
     self.assertTrue(page.has_tag_containing_pattern('script','google-analytics'))
     self.assertFalse(page.has_tag_containing_pattern('script','gargle-analytics'))