'Test when we ban an app with deleted versions we don\'t include
the deleted version\'s files when calling `hide_disabled_file` or we\'ll
cause server errors b/c we can\'t query the version.'

def test_disable_deleted_versions(self):

    self.webapp.update(is_packaged=True)
    self.webapp.latest_version.update(deleted=True)
    self.client.post(self.disable_url)
    eq_(self.webapp.reload().disabled_by_user, True)
