Code review comment for lp:~cjohnston/ubuntu-ci-services-itself/ts-project

Revision history for this message
Andy Doan (doanac) wrote :

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