diff options
author | Mehrdad Afshari <mmx@google.com> | 2018-07-26 11:18:48 -0700 |
---|---|---|
committer | Mehrdad Afshari <mmx@google.com> | 2018-07-26 11:45:59 -0700 |
commit | b12f0aaf0740ddac4cf05ecc00da23c847c239a3 (patch) | |
tree | 1a405fee36565f47fbd962997ea67f8a235833cd /src/python/grpcio_tests | |
parent | ac81f5aa32ee53f50f99f695849dd1f724535058 (diff) |
Add SERVICE_NAME to reflection/health
Diffstat (limited to 'src/python/grpcio_tests')
-rw-r--r-- | src/python/grpcio_tests/tests/health_check/_health_servicer_test.py | 3 | ||||
-rw-r--r-- | src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/python/grpcio_tests/tests/health_check/_health_servicer_test.py b/src/python/grpcio_tests/tests/health_check/_health_servicer_test.py index 3cbbb8de33..350b5eebe5 100644 --- a/src/python/grpcio_tests/tests/health_check/_health_servicer_test.py +++ b/src/python/grpcio_tests/tests/health_check/_health_servicer_test.py @@ -73,6 +73,9 @@ class HealthServicerTest(unittest.TestCase): self.assertEqual(grpc.StatusCode.NOT_FOUND, context.exception.code()) + def test_health_service_name(self): + self.assertEqual(health.SERVICE_NAME, 'grpc.health.v1.Health') + if __name__ == '__main__': unittest.main(verbosity=2) diff --git a/src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py b/src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py index 7ffdba6a67..bcd9e14a38 100644 --- a/src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py +++ b/src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py @@ -171,6 +171,10 @@ class ReflectionServicerTest(unittest.TestCase): for name in _SERVICE_NAMES))),) self.assertSequenceEqual(expected_responses, responses) + def testReflectionServiceName(self): + self.assertEqual(reflection.SERVICE_NAME, + 'grpc.reflection.v1alpha.ServerReflection') + if __name__ == '__main__': unittest.main(verbosity=2) |