Fixed tests for urlsafe_components, refs #1650

This commit is contained in:
Simon Willison 2022-03-07 11:33:31 -08:00
commit bb499942c1

View file

@ -19,8 +19,8 @@ from unittest.mock import patch
("foo", ["foo"]),
("foo,bar", ["foo", "bar"]),
("123,433,112", ["123", "433", "112"]),
("123%2C433,112", ["123,433", "112"]),
("123%2F433%2F112", ["123/433/112"]),
("123-2C433,112", ["123,433", "112"]),
("123-2F433-2F112", ["123/433/112"]),
],
)
def test_urlsafe_components(path, expected):