def test_custom_template(self):
        view = DataView(user=self.user)
        view.save()

        response = self.client.get('/api/test/template/',
                                   HTTP_ACCEPT='application/json')
        self.assertEqual(response.status_code, codes.ok)
        self.assertEqual(len(json.loads(response.content)), 1)

        revision = json.loads(response.content)[0]

        self.assertEqual(revision['object_id'], view.pk)
        self.assertTrue(response['Link-Template'])
        self.assertFalse(revision in 'content_type')
dataset/ETHPy150Open chop-dbhi/serrano/tests/cases/resources/tests/base.py/RevisionResourceTestCase.test_custom_template/swapped operands of `in`