stuff like:
287 + resp = self.api_client.get('/api/v1/sourcepackage/', format='json') 288 + self.assertValidJSONResponse(resp) 289 + self.assertEqual(len(self.deserialize(resp)['objects']), 1)
could probably get folded into:
http://bazaar.launchpad.net/~canonical-ci-engineering/ubuntu-ci-services-itself/trunk/view/head:/ci-utils/ci_utils/tastypie/test.py
In particular it could probably work with the getResource method.
« Back to merge proposal
stuff like:
287 + resp = self.api_ client. get('/api/ v1/sourcepackag e/', format='json') dJSONResponse( resp) l(len(self. deserialize( resp)[' objects' ]), 1)
288 + self.assertVali
289 + self.assertEqua
could probably get folded into:
http:// bazaar. launchpad. net/~canonical- ci-engineering/ ubuntu- ci-services- itself/ trunk/view/ head:/ci- utils/ci_ utils/tastypie/ test.py
In particular it could probably work with the getResource method.