def test_get_extra_result_extra_has_key_language_stats(self): results = get_extra(self.urls, 'Repositories') self.assertIn('language_stats', results[0].get('extra'))
def test_get_extra_result_extra_has_key_owner(self): results = get_extra(self.urls, 'Repositories') self.assertIn('owner', results[0].get('extra'))
def test_get_extra_result_has_key_extra(self): results = get_extra(self.urls, 'Repositories') self.assertIn('extra', results[0])
def test_get_extra_return_member_type(self): results = get_extra(self.urls, 'Repositories') if len(results) > 0: self.assertIsInstance(results[0], dict)
def test_get_extra_return_type(self): results = get_extra(self.urls, 'Repositories') self.assertIsInstance(results, list)
def test_get_extra_result_has_key_urls(self): results = get_extra(self.urls, 'Repositories', self.proxy_list) self.assertIn('url', results[0])