Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2626)

Unified Diff: appengine/isolate/handlers_test.py

Issue 2693953006: Isolate: Download files as their filename instead of hash (Closed)
Patch Set: Isolate: Download files as their filename instead of hash Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/isolate/handlers_frontend.py ('k') | appengine/isolate/templates/browse.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/isolate/handlers_test.py
diff --git a/appengine/isolate/handlers_test.py b/appengine/isolate/handlers_test.py
index 2e5a34a854387db1faf24c9f015b7ce35c28bb2e..2ee038d10a6eed009d733df301ac0c7f28d573b8 100755
--- a/appengine/isolate/handlers_test.py
+++ b/appengine/isolate/handlers_test.py
@@ -152,12 +152,21 @@ class MainTest(test_case.TestCase):
self.set_as_reader()
hashhex = self.gen_content()
self.app_frontend.get('/browse?namespace=default&hash=%s' % hashhex)
+ self.app_frontend.get(
+ '/browse?namespace=default&hash=%s&as=file1.txt' % hashhex)
def test_browse_missing(self):
self.set_as_reader()
hashhex = '0123456780123456780123456789990123456789'
self.app_frontend.get(
- '/browse?namespace=default&hash=%s' % hashhex, status=404)
+ '/browse?namespace=default&digest=%s' % hashhex, status=404)
+
+ def test_content(self):
+ self.set_as_reader()
+ hashhex = self.gen_content()
+ self.app_frontend.get('/content?namespace=default-gzip&hash=%s' % hashhex)
+ self.app_frontend.get(
+ '/content?namespace=default-gzip&hash=%s&as=file1.txt' % hashhex)
def test_config(self):
self.set_as_admin()
« no previous file with comments | « appengine/isolate/handlers_frontend.py ('k') | appengine/isolate/templates/browse.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698