summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEnes <enessolak99@gmail.com>2018-06-01 20:16:22 +0300
committerSergey M <dstftw@gmail.com>2018-06-02 00:16:22 +0700
commit85750f897293b5a56e6be521f8b0be3eec082899 (patch)
tree16390d25bf14ce611ebe13af04ee90652f5e3c7f /test
parent926d97fc6b018a25ea777dfcfb9a84a10920c2b7 (diff)
[openload] Improve ext extraction
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index f2b51131c..e63af0166 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -361,6 +361,7 @@ class TestUtil(unittest.TestCase):
self.assertEqual(determine_ext('http://example.com/foo/bar.nonext/?download', None), None)
self.assertEqual(determine_ext('http://example.com/foo/bar/mp4?download', None), None)
self.assertEqual(determine_ext('http://example.com/foo/bar.m3u8//?download'), 'm3u8')
+ self.assertEqual(determine_ext('foobar', None), None)
def test_find_xpath_attr(self):
testxml = '''<root>