fix unit test (attempt 1)

This commit is contained in:
Jorge Schrauwen 2015-11-30 16:21:49 +00:00 committed by rallytime
parent a461d7bf12
commit 598226def1

View file

@ -107,7 +107,8 @@ class NetworkTestCase(TestCase):
of the running TCP connections
'''
with patch.object(salt.utils.network, 'active_tcp', return_value='A'):
self.assertEqual(network.active_tcp(), 'A')
with patch.dict(network.__grains__, {'kernel': 'Linux'}):
self.assertEqual(network.active_tcp(), 'A')
def test_traceroute(self):
'''