aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-12-17 12:32:58 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-12-17 12:32:58 +0100
commitd6c7a367e88096bb17e323954002c084477fe908 (patch)
tree416d5df540c77499748928c73c5b016eb4394ff9 /test
parentcecaaf3f58ad9f544dbb79af1e565d9353fa2b2d (diff)
[utils] Fix url_basename
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 5f4fdb771..e5778cd83 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -188,6 +188,9 @@ class TestUtil(unittest.TestCase):
self.assertEqual(url_basename(u'http://foo.de/bar/baz?x=y'), u'baz')
self.assertEqual(url_basename(u'http://foo.de/bar/baz#x=y'), u'baz')
self.assertEqual(url_basename(u'http://foo.de/bar/baz/'), u'baz')
+ self.assertEqual(
+ url_basename(u'http://media.w3.org/2010/05/sintel/trailer.mp4'),
+ u'trailer.mp4')
if __name__ == '__main__':
unittest.main()