def test_get_ext_with_query_string(self): """Test get the file's extension in a url with query string.""" filename_str = 'http://www.example.com/path/video.mp4?param1=1&p2=2' output = get_ext(filename_str) self.assertEqual(output, 'mp4')