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

def test_soft_delete_version(self):

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