def test_abc_news_au(self): client = TestClient() client.add_license_keys_store() mock_api = MockNewsApiApi() newsapi = NewsAPI(client.license_keys, mock_api) self.assertIsNotNone(newsapi) mock_api.response = MockResponse( 200, {"content-type": "application/json"}, json.loads(""" { "articles": [ { "title": "test title", "description": "test description", "publishedAt": "test publishedAt", "author": "test author", "url": "test url", "urlToImage": "test urlToImage" } ] } """)) response = NewsAPI.abc_news_au("testservice", 10, False, False) self.assertIsNotNone(response)
def test_abc_news_au(self): response = NewsAPI.abc_news_au("testservice", 10, False, False) self.assertIsNotNone(response)