'Can delete an image I created.'

def test_delete_own_image(self):

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