def test_dataset_licenses_list(self): '''It should fetch the dataset licenses list from the API''' licenses = LicenseFactory.create_batch(4) response = self.get(url_for('api.licenses')) self.assert200(response) self.assertEqual(len(response.json), len(licenses))
def setUp(self): # Feed the DB with random data to ensure true matching LicenseFactory.create_batch(3)
def setUp(self): super(LicenseModelTest, self).setUp() # Feed the DB with random data to ensure true matching LicenseFactory.create_batch(3)