@pytest.mark.parametrize('path,expected', [('foo', ['foo']), ('foo,bar', ['foo', 'bar']), ('123,433,112', ['123', '433', '112']), ('123~2C433,112', ['123,433', '112']), ('123~2F433~2F112', ['123/433/112'])])
def test_urlsafe_components(path, expected):
    assert (expected == utils.urlsafe_components(path))
@pytest.mark.parametrize('path,expected', [('foo', ['foo']), ('foo,bar', ['foo', 'bar']), ('123,433,112', ['123', '433', '112']), ('123~2C433,112', ['123,433', '112']), ('123~2F433~2F112', ['123/433/112'])])
def test_urlsafe_components(path, expected):
    assert (expected == utils.urlsafe_components(path))