mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
unit test update
grain value looks for list in assertion
This commit is contained in:
parent
39adf86fec
commit
1dc8f5f289
@ -157,7 +157,7 @@ class GrainsTestCase(TestCase):
|
||||
|
||||
with patch.dict(grains.__opts__, {'test': True}):
|
||||
with patch.dict(grains.__grains__, {self.name: [self.value]}):
|
||||
self.assertDictEqual(grains.list_absent(self.name, self.value),
|
||||
self.assertDictEqual(grains.list_absent(self.name, [self.value]),
|
||||
ret1)
|
||||
|
||||
self.assertDictEqual(grains.list_absent(self.name, self.value), ret2)
|
||||
|
Loading…
Reference in New Issue
Block a user