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

Unified Diff: appengine/components/components/auth/model_test.py

Issue 2854853005: auth: Stop mentioning 'global' secrets in API. (Closed)
Patch Set: Created 3 years, 8 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
Index: appengine/components/components/auth/model_test.py
diff --git a/appengine/components/components/auth/model_test.py b/appengine/components/components/auth/model_test.py
index 201f5a7f77dd2a5588729656c70c45d0c55e9127..43a210cda9905b3345e886c8f30feb45b2d5fe25 100755
--- a/appengine/components/components/auth/model_test.py
+++ b/appengine/components/components/auth/model_test.py
@@ -184,20 +184,16 @@ class AuthSecretTest(test_case.TestCase):
def test_bootstrap_works(self):
# Creating it for a first time.
- ent1 = model.AuthSecret.bootstrap('test_secret', 'local', length=127)
+ ent1 = model.AuthSecret.bootstrap('test_secret', length=127)
self.assertTrue(ent1)
self.assertEqual(ent1.key.string_id(), 'test_secret')
self.assertEqual(ent1.key.parent().string_id(), 'local')
self.assertEqual(1, len(ent1.values))
self.assertEqual(127, len(ent1.values[0]))
# Getting same one.
- ent2 = model.AuthSecret.bootstrap('test_secret', 'local')
+ ent2 = model.AuthSecret.bootstrap('test_secret')
self.assertEqual(ent1, ent2)
- def test_bad_key_scope(self):
- with self.assertRaises(ValueError):
- model.AuthSecret.bootstrap('test_secret', 'bad-scope')
-
def make_group(group_id, nested=(), owners=model.ADMIN_GROUP, store=True):
"""Makes a new AuthGroup to use in test, puts it in datastore."""

Powered by Google App Engine
This is Rietveld 408576698