def test_set_auth_store(self): app = webapp2.WSGIApplication() req = webapp2.Request.blank('/') req.app = app store = auth.AuthStore(app) self.assertEqual(len(app.registry), 0) auth.set_store(store, app=app) self.assertEqual(len(app.registry), 1) s = auth.get_store(app=app) self.assertTrue(isinstance(s, auth.AuthStore))