Fix mock use for 1.1.0

Use the correct method name to check the calls to the mock.

Change-Id: Ibd7ab3f0a7f47682592b29cb238f78dae6337ba7
This commit is contained in:
Doug Hellmann 2015-07-10 12:51:32 +00:00
parent def5cfcc3e
commit 1b0b713120
2 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class GettextTest(test_base.BaseTestCase):
with mock.patch('gettext.install'):
environ_get.return_value = '/foo/bar'
_gettextutils.install('blaa')
environ_get.assert_calls([mock.call('BLAA_LOCALEDIR')])
environ_get.assert_has_calls([mock.call('BLAA_LOCALEDIR')])
def test_gettext_install_updates_builtins(self):
with mock.patch('os.environ.get') as environ_get:

View File

@ -7,5 +7,7 @@ hacking<0.11,>=0.10.0
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
oslosphinx>=2.5.0 # Apache-2.0
mock>=1.1;python_version!='2.6'
mock==1.0.1;python_version=='2.6'
oslotest>=1.5.1 # Apache-2.0
coverage>=3.6