Skip to content

Commit

Permalink
Using assertIs in unit tests where appropriate. (#3629)
Browse files Browse the repository at this point in the history
* Using assertIs in unit tests where appropriate.

Any usage of `self.assertTrue(a is b)` has become
`self.assertIs(a, b)`.

* Converting some assertFalse(a is b) to assertIsNot(a, b).
  • Loading branch information
dhermes authored Jul 19, 2017
1 parent a9293ca commit b8d57e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-python-speech/tests/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def test_ctor(self):
creds = _make_credentials()
http = object()
client = self._make_one(credentials=creds, _http=http)
self.assertTrue(client._credentials is creds)
self.assertTrue(client._http is http)
self.assertIs(client._credentials, creds)
self.assertIs(client._http, http)

def test_ctor_use_grpc_preset(self):
creds = _make_credentials()
Expand Down

0 comments on commit b8d57e8

Please sign in to comment.