mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Test is now also working with Python2
Since assertCountEqual was Python>=3.2 only, we backported this to Python2.
This commit is contained in:
parent
fa9c3c0e7c
commit
c22c81304f
@ -889,4 +889,6 @@ SwapTotal: 4789244 kB'''
|
||||
ret = {'fqdns': ['bluesniff.foo.bar', 'foo.bar.baz', 'rinzler.evil-corp.com']}
|
||||
with patch.object(socket, 'gethostbyaddr', side_effect=reverse_resolv_mock):
|
||||
fqdns = core.fqdns()
|
||||
self.assertCountEqual(fqdns['fqdns'], ret['fqdns'])
|
||||
self.assertIn('fqdns', fqdns)
|
||||
self.assertEqual(len(fqdns['fqdns']), len(ret['fqdns']))
|
||||
self.assertEqual(set(fqdns['fqdns']), set(ret['fqdns']))
|
||||
|
Loading…
Reference in New Issue
Block a user