Update tests to match expectations
In the change from py2 -> py3, some expectations around file modes have changed,and this update changes the tests to match those expectations. Change-Id: I6c1348e02024368b70c10d91137f1ed6d9d5a483
This commit is contained in:
parent
1e40d18a6a
commit
77267efd51
|
@ -564,7 +564,7 @@ class NovaComputeUtilsTests(CharmTestCase):
|
|||
self.relation_get.return_value = 'Zm9vX2NlcnQK'
|
||||
with patch_open() as (_open, _file):
|
||||
utils.import_keystone_ca_cert()
|
||||
_open.assert_called_with(utils.CA_CERT_PATH, 'wt')
|
||||
_open.assert_called_with(utils.CA_CERT_PATH, 'wb')
|
||||
_file.write.assert_called_with(b'foo_cert\n')
|
||||
check_call.assert_called_with(['update-ca-certificates'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue