def test_raise(self) -> None: # arrange known_ic_class = LoadableImageCrawlerA kic = KnownImageCrawlers([]) kic._list = [('test', known_ic_class)] # act & assert with self.assertRaises(TypeError): kic._test_duplicate_class(known_ic_class)
def test_success_filled(self) -> None: # arrange kic = KnownImageCrawlers([]) kic._list = [('test', LoadableImageCrawlerA)] # act kic._test_duplicate_class(LoadableImageCrawlerB) # assert self.assertTrue(True, 'no errors thrown')