[openload] Improve ext extraction
[youtube-dl] / test / test_utils.py
index f2b51131c2aa6a9b3570343f93ac0148a80a5c84..e63af01668ceb84cc2d8452490bc94eb48791f40 100644 (file)
@@ -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>