'PATCH requests should not be able to create objects.'

def test_patch_cannot_create_an_object(self):

    data = {u'text': u'foobar'}
    request = factory.patch(u'/999', data, format=u'json')
    with self.assertNumQueries(1):
        response = self.view(request, pk=999).render()
    assert (response.status_code == status.HTTP_404_NOT_FOUND)
    assert (not self.objects.filter(id=999).exists())
