def test_content_disposition(self): assert_equal(filename_from_url(mock_url), mock_filename)
def test_filename_from_url(): assert filename_from_url(iris_url) == 'iris.data'
def test_no_content_disposition(self): assert_equal(filename_from_url(iris_url), 'iris.data')
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')