def METHOD_NAME(self, pkg, expect, utils):
    pkg = packages.Package.from_text(*pkg)
    assert pkg.name == expect.name
    assert pkg.full_name == pkg.full_name
    assert pkg.pretty_specs == expect.specs
    is_e = "-e" in pkg.full_name
    assert pkg.editable == is_e
    if pkg.editable:
        assert pkg.path == Path("src/lib/custompackage")
    else:
        assert pkg.path is None