Remove unnecessary mock patch

This commit is contained in:
Bo Maryniuk 2017-04-21 16:49:40 +02:00
parent ffab2db213
commit a40876cdac

View File

@ -120,7 +120,6 @@ class TimezoneTestCase(TestCase):
'''
timezone.__grains__['os_family'] = ['RedHat']
timezone.__salt__
with patch('salt.modules.timezone._get_zone_aix', MagicMock(return_value=self.TEST_TZ)):
assert timezone.set_zone(self.TEST_TZ)
name, args, kwargs = timezone.__salt__['file.sed'].mock_calls[0]
assert args == ('/etc/sysconfig/clock', '^ZONE=.*', 'ZONE="UTC"')
assert timezone.set_zone(self.TEST_TZ)
name, args, kwargs = timezone.__salt__['file.sed'].mock_calls[0]
assert args == ('/etc/sysconfig/clock', '^ZONE=.*', 'ZONE="UTC"')