示例#1
0
 def test_content_disposition(self):
     assert_equal(filename_from_url(mock_url), mock_filename)
示例#2
0
def test_filename_from_url():
    assert filename_from_url(iris_url) == 'iris.data'
示例#3
0
 def test_no_content_disposition(self):
     assert_equal(filename_from_url(iris_url), 'iris.data')
示例#4
0
 def test_content_disposition(self):
     fuel_url = 'https://github.com/bartvm/fuel/archive/master.zip'
     assert_equal(filename_from_url(fuel_url), 'fuel-master.zip')
示例#5
0
def test_filename_from_url():
    assert filename_from_url(iris_url) == 'iris.data'