コード例 #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
ファイル: handler_test.py プロジェクト: rmistry/luci-py
 def test_non_applicable(self):
     request = webapp2.Request({})
     self.assertIsNone(handler.service_to_service_authentication(request))
コード例 #3
0
ファイル: handler_test.py プロジェクト: misscache/luci-py
 def test_non_applicable(self):
   request = webapp2.Request({})
   self.assertIsNone(
       handler.service_to_service_authentication(request))
コード例 #4
0
ファイル: handler_test.py プロジェクト: stefb965/luci-py
 def test_non_applicable(self):
     request = webapp2.Request({})
     self.assertEqual((None, False),
                      handler.service_to_service_authentication(request))