def test_search_resource_type(self): try: search = test_3times_then_fail(pycomicvine.Search, resources="volume", query="Angel") for v in test_3times_then_fail(list, search): self.assertIsInstance(v, (pycomicvine.Volume, type(None))) except TimeoutError, e: logging.getLogger("tests").debug(e)
def test_search_resource_type(self): try: search = test_3times_then_fail( pycomicvine.Search, resources="volume", query="Angel" ) for v in test_3times_then_fail(list, search): self.assertIsInstance(v, (pycomicvine.Volume, type(None))) except TimeoutError,e: logging.getLogger("tests").debug(e)
def test_search_id(self): try: search = test_3times_then_fail(pycomicvine.Search, query="The Walking Dead", field_list=["id"]) self.assertNotEqual(len(search), 0) self.assertIn(18166, [s.id if s != None else 0 for s in search]) except TimeoutError, e: logging.getLogger("tests").debug(e)
def test_search_id(self): try: search = test_3times_then_fail( pycomicvine.Search, query="The Walking Dead", field_list=["id"] ) self.assertNotEqual(len(search),0) self.assertIn(18166, [s.id if s != None else 0 for s in search]) except TimeoutError,e: logging.getLogger("tests").debug(e)