def test_marshaller_raises(target): with pytest.raises(ValueError): _marshal_target(urlparse(target))
def test_marshaller_not_raises(target): assert target == _unmarshal_target(_marshal_target(urlparse(target)))