'Test that the serialized response contains only relevant data.'

def test_response_data(self):

    body = {u'id': u'test'}
    response = self.client.post(u'/v1/apps', json.dumps(body), content_type=u'application/json', HTTP_AUTHORIZATION=u'token    {}'.format(self.token))
    body = {u'domain': u'test-domain.example.com'}
    response = self.client.post(u'/v1/apps/test/domains', json.dumps(body), content_type=u'application/json', HTTP_AUTHORIZATION=u'token    {}'.format(self.token))
    for key in response.data:
        self.assertIn(key, [u'uuid', u'owner', u'created', u'updated', u'app', u'domain'])
    expected = {u'owner': self.user.username, u'app': u'test', u'domain': u'test-domain.example.com'}
    self.assertDictContainsSubset(expected, response.data)
