Пример #1
0
 def test_find_scraperclasses_single(self):
     result = scraper.find_scraperclasses("CalvinAndHobbes")
     self.assertEqual(len(result), 1)
Пример #2
0
 def test_find_scraperclasses_multi(self):
     result = scraper.find_scraperclasses("a", multiple_allowed=True)
     self.assertTrue(len(result) > 1)
Пример #3
0
 def test_find_scraperclasses_error(self):
     with pytest.raises(ValueError):
         scraper.find_scraperclasses("")
Пример #4
0
 def test_find_scraperclasses_single(self):
     result = scraper.find_scraperclasses("xkcd")
     assert len(result) == 1
Пример #5
0
 def test_find_scraperclasses_multi(self):
     result = scraper.find_scraperclasses("a", multiple_allowed=True)
     self.assertTrue(len(result) > 1)
Пример #6
0
 def test_find_scraperclasses_single(self):
     result = scraper.find_scraperclasses("CalvinAndHobbes")
     self.assertEqual(len(result), 1)
Пример #7
0
 def test_find_scraperclasses_single(self):
     result = scraper.find_scraperclasses("xkcd")
     self.assertEqual(len(result), 1)