コード例 #1
0
ファイル: tests.py プロジェクト: shahraam/Halowrepo
 def test_parse_apirespone(self):
     with open('fixtures/api_search.json') as f:
         apiresponse = f.read()
         bom_stripped = dreamfilm._strip_bom(apiresponse)
         items = dreamfilm._apiresponse_to_items(bom_stripped)
         self.assertEqual(len(items), 25)
コード例 #2
0
 def test_parse_apirespone(self):
     with open('fixtures/api_search.json') as f:
         apiresponse = f.read()
         bom_stripped = dreamfilm._strip_bom(apiresponse)
         items = dreamfilm._apiresponse_to_items(bom_stripped)
         self.assertEqual(len(items), 25)