aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio/tests/unit/beta/_implementations_test.py
diff options
context:
space:
mode:
authorGravatar Christian Svensson <blue@cmd.nu>2016-03-10 16:50:58 +0100
committerGravatar Christian Svensson <blue@cmd.nu>2016-03-20 18:43:11 +0100
commitce2a2d041dd473408bb3e11c49e39cb689f20495 (patch)
tree0887a9ec7cb5fed5f1dc7dddd6f773ee47de437f /src/python/grpcio/tests/unit/beta/_implementations_test.py
parent0640711b86d1d8387ba908edf329f08fa58ab289 (diff)
ssl_channel_credentials to use None by default
Since the default behavior is quite sane, support just calling ssl_channel_credentials() without explicitly specifying ssl_channel_credentials(None, None, None). This changes the pattern ssl_channel_credentials(server_crt, None, None) to ssl_channel_credentials(server_crt) Signed-off-by: Christian Svensson <blue@cmd.nu>
Diffstat (limited to 'src/python/grpcio/tests/unit/beta/_implementations_test.py')
-rw-r--r--src/python/grpcio/tests/unit/beta/_implementations_test.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/python/grpcio/tests/unit/beta/_implementations_test.py b/src/python/grpcio/tests/unit/beta/_implementations_test.py
index 6b32305af7..26be670c45 100644
--- a/src/python/grpcio/tests/unit/beta/_implementations_test.py
+++ b/src/python/grpcio/tests/unit/beta/_implementations_test.py
@@ -38,14 +38,13 @@ from tests.unit import resources
class ChannelCredentialsTest(unittest.TestCase):
def test_runtime_provided_root_certificates(self):
- channel_credentials = implementations.ssl_channel_credentials(
- None, None, None)
+ channel_credentials = implementations.ssl_channel_credentials()
self.assertIsInstance(
channel_credentials, implementations.ChannelCredentials)
def test_application_provided_root_certificates(self):
channel_credentials = implementations.ssl_channel_credentials(
- resources.test_root_certificates(), None, None)
+ resources.test_root_certificates())
self.assertIsInstance(
channel_credentials, implementations.ChannelCredentials)