Esempio n. 1
0
 def test8(self):
     u""""
         Ничего не найдено есть
     """
     html = self.get_data('not_found4.html')
     g = GoogleParser(html)
     self.assertEqual(g.is_not_found(), True)
Esempio n. 2
0
 def test5(self):
     u""""
         Ничего не найдено нет
     """
     html = self.get_data('google.html')
     g = GoogleParser(html)
     self.assertEqual(g.is_not_found(), False)
Esempio n. 3
0
 def test5(self):
     u""""
         Ничего не найдено нет
     """
     html = self.get_data('google.html')
     g = GoogleParser(html)
     self.assertEqual(g.is_not_found(), False)
Esempio n. 4
0
 def test7(self):
     u""""
         Ничего не найдено есть
     """
     html = self.get_data('not_found4.html')
     g = GoogleParser(html)
     self.assertEqual(g.is_not_found(), True)
Esempio n. 5
0
    def test4(self):
        u""""
            Ничего не найдено есть
        """
        html = self.get_data('not-found.html')
        g = GoogleParser(html)
        self.assertEqual(g.is_not_found(), True)

        pe = GoogleParser.pagination_exists(html)
        self.assertFalse(pe)
Esempio n. 6
0
    def test4(self):
        u""""
            Ничего не найдено есть
        """
        html = self.get_data('not-found.html')
        g = GoogleParser(html)
        self.assertEqual(g.is_not_found(), True)

        pe = GoogleParser.pagination_exists(html)
        self.assertFalse(pe)