Download:
child 141:61eb02ffa9d3
parent 139:8155ebf7d128
140:fa50e7dd9d91
Anton Shestakov <av6@dwimlabs.net>, Thu, 14 Jul 2016 17:04:03 +0800
tests: test parsing urls with "directories"

1 файлов изменено, 3 вставок(+), 0 удалений(-) [+]
tests/test_incoming.py file | annotate | diff | comparison | revisions
--- a/tests/test_incoming.py Wed Jul 13 18:25:43 2016 +0800
+++ b/tests/test_incoming.py Thu Jul 14 17:04:03 2016 +0800
@@ -60,6 +60,9 @@
result = parse_project_url('https://example.com/alice/hello-world')
assert result == ('example.com', 'alice', 'hello-world')
+ result = parse_project_url('https://example.com/bob/a/b/c/')
+ assert result == ('example.com', 'bob', 'a/b/c')
+
result = parse_project_url('~alice/hello-world')
assert result == ('self', '~alice', 'hello-world')