'Editing image sets the updated_by field.'

def test_edit_image_with_permissions(self):

    img = ImageFactory()
    u = UserFactory()
    add_permission(u, Image, 'change_image')
    self.client.login(username=u.username, password='testpass')
    r = post(self.client, 'gallery.edit_media', {'description': 'arrr'}, args=['image', img.id])
    eq_(200, r.status_code)
    eq_(u.username, Image.objects.get().updated_by.username)
