def test_update(self): ''' Test if it update a key with a value in the minion datastore ''' with patch('salt.modules.data.load', MagicMock(return_value={})), \ patch('salt.modules.data.dump', MagicMock(return_value=True)): self.assertTrue(data.update('foo', 'salt'))
def test_update(): """ Test if it update a key with a value in the minion datastore """ with patch("salt.modules.data.load", MagicMock(return_value={})), patch( "salt.modules.data.dump", MagicMock(return_value=True)): assert data.update("foo", "salt")
def test_update(self): ''' Test if it update a key with a value in the minion datastore ''' self.assertTrue(data.update('foo', 'salt'))