Ejemplo n.º 1
0
 def test8(self):
     u""""
         Ничего не найдено есть
     """
     html = self.get_data('not_found4.html')
     g = GoogleParser(html)
     self.assertEqual(g.is_not_found(), True)
Ejemplo n.º 2
0
 def test5(self):
     u""""
         Ничего не найдено нет
     """
     html = self.get_data('google.html')
     g = GoogleParser(html)
     self.assertEqual(g.is_not_found(), False)
Ejemplo n.º 3
0
 def test5(self):
     u""""
         Ничего не найдено нет
     """
     html = self.get_data('google.html')
     g = GoogleParser(html)
     self.assertEqual(g.is_not_found(), False)
Ejemplo n.º 4
0
 def test7(self):
     u""""
         Ничего не найдено есть
     """
     html = self.get_data('not_found4.html')
     g = GoogleParser(html)
     self.assertEqual(g.is_not_found(), True)
Ejemplo 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)
Ejemplo 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)