Beispiel #1
0
 def test_list(self):
     response = self.get(url_for('api.available_dataset_badges'))
     self.assertStatus(response, 200)
     self.assertEqual(len(response.json), len(DATASET_BADGE_KINDS))
     for kind, label in DATASET_BADGE_KINDS.items():
         self.assertIn(kind, response.json)
         self.assertEqual(response.json[kind], label)
Beispiel #2
0
 def test_list(self):
     response = self.get(url_for('api.available_dataset_badges'))
     self.assertStatus(response, 200)
     self.assertEqual(len(response.json), len(DATASET_BADGE_KINDS))
     for kind, label in DATASET_BADGE_KINDS.items():
         self.assertIn(kind, response.json)
         self.assertEqual(response.json[kind], label)