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