コード例 #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'))
コード例 #2
0
ファイル: test_data.py プロジェクト: mcalmer/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")
コード例 #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'))
コード例 #4
0
ファイル: data_test.py プロジェクト: bryson/salt
 def test_update(self):
     '''
     Test if it update a key with a value in the minion datastore
     '''
     self.assertTrue(data.update('foo', 'salt'))