def METHOD_NAME(self):
    pkg = model.Package.by_name(self.pkgname)
    res = pkg.resources[0]
    assert len(pkg.resources) == 3, pkg.resources
    res.delete()
    model.repo.commit_and_remove()
    pkg = model.Package.by_name(self.pkgname)
    assert len(pkg.resources) == 2, pkg.resources
    assert len(pkg.resources_all) == 3, pkg.resources_all