示例#1
0
 def test_applicable(self):
   request = webapp2.Request({
     'HTTP_X_APPENGINE_INBOUND_APPID': 'some-app',
   })
   self.assertEqual(
     model.Identity(model.IDENTITY_SERVICE, 'some-app'),
     handler.service_to_service_authentication(request))
示例#2
0
 def test_non_applicable(self):
     request = webapp2.Request({})
     self.assertIsNone(handler.service_to_service_authentication(request))
示例#3
0
 def test_non_applicable(self):
   request = webapp2.Request({})
   self.assertIsNone(
       handler.service_to_service_authentication(request))
示例#4
0
 def test_non_applicable(self):
     request = webapp2.Request({})
     self.assertEqual((None, False),
                      handler.service_to_service_authentication(request))