コード例 #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") == ""
コード例 #4
0
 def test_invalid_format(self):
     assert find_format("http://localhost") == ""
コード例 #5
0
 def test_valid_format(self):
     assert find_format("http://localhost/test.zip") == "zip"
コード例 #6
0
 def test_unknown_format(self):
     assert find_format("http://localhost/test.sql") == ""