'Test that when a Extension instance is soft-deleted, nothing is
truly deleted, and versions are not affected.'

def test_soft_delete_with_file(self):

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