'Test that when a Extension instance is soft-deleted, the slug
and the deleted properties change.'

def test_soft_delete(self):

    extension = Extension.objects.create()
    ExtensionVersion.objects.create(extension=extension, version='0.1')
    extension.delete()
    eq_(extension.slug, None)
    eq_(extension.deleted, True)
    extension.reload()
    eq_(extension.slug, None)
    eq_(extension.deleted, True)
