예제 #1
0
 def test_invalid_format(self):
     assert find_format("http://localhost") == ""
예제 #2
0
 def test_valid_format(self):
     assert find_format("http://localhost/test.zip") == "zip"
예제 #3
0
 def test_unknown_format(self):
     assert find_format("http://localhost/test.sql") == ""
 def test_invalid_format(self):
     assert find_format("http://localhost") == ""
 def test_valid_format(self):
     assert find_format("http://localhost/test.zip") == "zip"
 def test_unknown_format(self):
     assert find_format("http://localhost/test.sql") == ""