Exemple #1
0
 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'))
Exemple #2
0
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")
Exemple #3
0
 def test_update(self):
     '''
     Test if it update a key with a value in the minion datastore
     '''
     self.assertTrue(data.update('foo', 'salt'))
Exemple #4
0
 def test_update(self):
     '''
     Test if it update a key with a value in the minion datastore
     '''
     self.assertTrue(data.update('foo', 'salt'))