Update mocking in unit.grains.test_core.CoreGrainsTestCase.test_docker_virtual

This fixes this test in Oxygen, where the function name has changed.
This commit is contained in:
Erik Johnson 2017-12-23 19:47:37 -06:00
parent 16a097635a
commit d9a915fdc9
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -700,7 +700,7 @@ SwapTotal: 4789244 kB'''
'10:memory{0}a_long_sha256sum'.format(cgroup_substr)
log.debug(
'Testing Docker cgroup substring \'%s\'', cgroup_substr)
with patch('salt.utils.fopen', mock_open(read_data=cgroup_data)):
with patch('salt.utils.files.fopen', mock_open(read_data=cgroup_data)):
self.assertEqual(
core._virtual({'kernel': 'Linux'}).get('virtual_subtype'),
'Docker'