def test_obfuscate(self): with patch('salt.modules.pillar.items', MagicMock(return_value=pillar_value_1)): self.assertEqual(pillarmod.obfuscate(), dict(a='<int>', b='<str>'))
def test_obfuscate(self): self.assertEqual(pillarmod.obfuscate(), dict(a='<int>', b='<str>'))
def test_obfuscate(self): with patch("salt.modules.pillar.items", MagicMock(return_value=pillar_value_1)): self.assertEqual(pillarmod.obfuscate(), dict(a="<int>", b="<str>"))
def test_obfuscate(pillar_value): with patch("salt.modules.pillar.items", MagicMock(return_value=pillar_value)): assert pillarmod.obfuscate() == dict(a="<int>", b="<str>")