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:
parent
def5cfcc3e
commit
1b0b713120
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user