Пример #1
0
 def test_success_inherited(self) -> None:
     # act
     KnownImageCrawlers._test_abstract(LoadableImageCrawlerA)
     # assert
     self.assertTrue(True, 'no errors thrown')
Пример #2
0
 def test_raise(self) -> None:
     # act & assert
     with self.assertRaises(TypeError):
         KnownImageCrawlers._test_abstract(BaseLoadableImageCrawlerA)
Пример #3
0
 def test_success(self) -> None:
     # act
     KnownImageCrawlers._test_abstract(StandaloneLoadableImageCrawlerA)
     # assert
     self.assertTrue(True, 'no errors thrown')