Last unit test fix (passing locally, was failing in travis)

This commit is contained in:
Liam Young
2020-07-07 12:38:18 +00:00
parent ed2aded7f9
commit 7f122b8611
@@ -613,6 +613,8 @@ class TestOpenStackUtils(ut_utils.BaseTestCase):
'myprivkey')
def test_get_private_key_file_missing(self):
self.patch_object(openstack_utils.deployment_env, 'get_tmpdir',
return_value='/tmp/zaza-model1')
self.patch_object(openstack_utils.os.path, "isfile",
return_value=False)
self.assertIsNone(openstack_utils.get_private_key('mykeys'))