fix python santiy check error

reviewable/pr21215/r13
Yihua Zhang 5 years ago
parent e10d90ba27
commit f3d3466a40
  1. 11
      src/python/grpcio_tests/tests/unit/_auth_context_test.py

@ -103,11 +103,12 @@ class AuthContextTest(unittest.TestCase):
auth_data = pickle.loads(response) auth_data = pickle.loads(response)
self.assertIsNone(auth_data[_ID]) self.assertIsNone(auth_data[_ID])
self.assertIsNone(auth_data[_ID_KEY]) self.assertIsNone(auth_data[_ID_KEY])
self.assertDictEqual({ self.assertDictEqual(
'security_level': [b'TSI_PRIVACY_AND_INTEGRITY'], {
'transport_security_type': [b'ssl'], 'security_level': [b'TSI_PRIVACY_AND_INTEGRITY'],
'ssl_session_reused': [b'false'], 'transport_security_type': [b'ssl'],
}, auth_data[_AUTH_CTX]) 'ssl_session_reused': [b'false'],
}, auth_data[_AUTH_CTX])
def testSecureClientCert(self): def testSecureClientCert(self):
handler = grpc.method_handlers_generic_handler('test', { handler = grpc.method_handlers_generic_handler('test', {

Loading…
Cancel
Save