def test_parse_repo_result_extra_has_key_language_stats(self): if self.urls: result = parse_repo(self.urls[0].get('url')) self.assertIn('language_stats', result.get('extra'))
def test_parse_repo_result_extra_has_key_owner(self): if self.urls: result = parse_repo(self.urls[0].get('url')) self.assertIn('owner', result.get('extra'))
def test_parse_repo_result_type(self): if self.urls: result = parse_repo(self.urls[0].get('url')) self.assertIsInstance(result, dict)
def test_parse_repo_result_has_key_extra(self): if self.urls: result = parse_repo(self.urls[0].get('url')) self.assertIn('extra', result)
def test_parse_repo_result_has_key_urls(self): if self.urls: result = parse_repo(self.urls[0].get('url'), self.proxy_list[0]) self.assertIn('url', result)