コード例 #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)
コード例 #2
0
ファイル: search.py プロジェクト: miri64/pycomicvine
 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)
コード例 #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)
コード例 #4
0
ファイル: search.py プロジェクト: miri64/pycomicvine
 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)