def test_from_object__value_error(self, obj): with pytest.raises(ValueError): UrlPath.from_object(obj)
def test_from_object(self, obj, expected): target = UrlPath.from_object(obj) assert target._nodes == expected
def test_from_object__value_error(self, obj): with pytest.raises(ValueError): UrlPath.from_object(obj)
def test_from_object(self, obj, expected): target = UrlPath.from_object(obj) assert target._nodes == expected