diff options
author | Danny Hermes <daniel.j.hermes@gmail.com> | 2016-08-09 16:50:57 -0700 |
---|---|---|
committer | Danny Hermes <daniel.j.hermes@gmail.com> | 2016-08-10 10:47:24 -0700 |
commit | 7c4acacd414416da142ac64cb2233dcf9546dbbd (patch) | |
tree | cb439fa8e68392ae028fa541000373c6c6e177a5 /tests/test_service_account.py | |
parent | 1d427333c947a17f88b5f7399c1d2f2bcf865350 (diff) | |
download | oauth2client-7c4acacd414416da142ac64cb2233dcf9546dbbd.tar.gz |
Remove all uses of MagicMock
MagicMock is a version of Mock with extra features for
tests that need to test usage of magic methods (i.e.
__nonzero__, __cmp__, etc.).
None of the oauth2client tests actually need these
extra features though.
Diffstat (limited to 'tests/test_service_account.py')
-rw-r--r-- | tests/test_service_account.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_service_account.py b/tests/test_service_account.py index b5ae482..9ccb76f 100644 --- a/tests/test_service_account.py +++ b/tests/test_service_account.py @@ -275,10 +275,10 @@ class ServiceAccountCredentialsTests(unittest2.TestCase): utcnow.return_value = NOW # Create a custom credentials with a mock signer. - signer = mock.MagicMock() + signer = mock.Mock() signed_value = b'signed-content' - signer.sign = mock.MagicMock(name='sign', - return_value=signed_value) + signer.sign = mock.Mock(name='sign', + return_value=signed_value) credentials = service_account.ServiceAccountCredentials( self.service_account_email, signer, |