'Test that when a ExtensionVersion instance is soft-deleted, nothing
is truly deleted.'

def test_soft_delete_version_with_file(self):

    extension = Extension.objects.create()
    version = ExtensionVersion.objects.create(extension=extension, version='0.1')
    (file_path, signed_file_path) = self._create_files_for_version(version)
    version.delete()
    version.reload()
    eq_(version.deleted, True)
    assert Extension.objects.without_deleted().count()
    assert (not ExtensionVersion.objects.without_deleted().count())
    assert ExtensionVersion.objects.count()
    assert private_storage.exists(file_path)
    assert public_storage.exists(signed_file_path)
