Beispiel #1
0
 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'))
Beispiel #2
0
 def test_get_extra_result_extra_has_key_owner(self):
     results = get_extra(self.urls, 'Repositories')
     self.assertIn('owner', results[0].get('extra'))
Beispiel #3
0
 def test_get_extra_result_has_key_extra(self):
     results = get_extra(self.urls, 'Repositories')
     self.assertIn('extra', results[0])
Beispiel #4
0
 def test_get_extra_return_member_type(self):
     results = get_extra(self.urls, 'Repositories')
     if len(results) > 0:
         self.assertIsInstance(results[0], dict)
Beispiel #5
0
 def test_get_extra_return_type(self):
     results = get_extra(self.urls, 'Repositories')
     self.assertIsInstance(results, list)
Beispiel #6
0
 def test_get_extra_result_has_key_urls(self):
     results = get_extra(self.urls, 'Repositories', self.proxy_list)
     self.assertIn('url', results[0])