def test_req_is_absolute_null(): assert venv_update.req_is_absolute(None) is False
def test_req_is_absolute(req, expected): from pkg_resources import Requirement req = Requirement.parse(req) assert venv_update.req_is_absolute(req) is expected