'Can\'t delete an image I didn\'t create.'

def test_delete_image_without_permissions(self):

    img = ImageFactory()
    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    r = post(self.client, 'gallery.delete_media', args=['image', img.id])
    eq_(403, r.status_code)
    eq_(1, Image.objects.count())
