Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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)