Skip to content

Commit 4afd53d

Browse files
committed
Use a valid assert statement on MagicMock.
1 parent 3c02a81 commit 4afd53d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_gce.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_good_refresh(self):
4545
c.refresh(http)
4646
self.assertEquals('this-is-a-token', c.access_token)
4747

48-
http.request.assert_called_exactly_once_with(
48+
http.request.assert_called_once_with(
4949
'http://metadata.google.internal/0.1/meta-data/service-accounts/'
5050
'default/acquire'
5151
'?scope=http%3A%2F%2Fexample.com%2Fa%20http%3A%2F%2Fexample.com%2Fb')
@@ -92,7 +92,7 @@ def test_get_access_token(self):
9292
self.assertEqual('this-is-a-token', token.access_token)
9393
self.assertEqual(None, token.expires_in)
9494

95-
http.request.assert_called_exactly_once_with(
95+
http.request.assert_called_once_with(
9696
'http://metadata.google.internal/0.1/meta-data/service-accounts/'
9797
'default/acquire?scope=dummy_scope')
9898

0 commit comments

Comments
 (0)