def test_type_none(self): r = self.client.get(self.latest_url) assert r.status_code == 302 url = '%s?%s' % (self.file.filename, urlencode({'filehash': self.file.hash})) assert r['Location'].endswith(url), r['Location']
def test_type_none(self): response = self.client.get(self.latest_url) assert response.status_code == 302 url = '{}?{}'.format(self.file.filename, urlencode({'filehash': self.file.hash})) assert response['Location'].endswith(url), response['Location']