Esempio n. 1
0
 def test_mounts(self):
     '''
     Test if it returns a list of current MooseFS mounts
     '''
     mock = MagicMock(return_value={'stdout': ''})
     with patch.dict(moosefs.__salt__, {'cmd.run_all': mock}):
         self.assertDictEqual(moosefs.mounts(), {})
Esempio n. 2
0
 def test_mounts(self):
     '''
     Test if it returns a list of current MooseFS mounts
     '''
     mock = MagicMock(return_value={'stdout': ''})
     with patch.dict(moosefs.__salt__, {'cmd.run_all': mock}):
         self.assertDictEqual(moosefs.mounts(), {})
Esempio n. 3
0
def test_mounts():
    """
    Test if it returns a list of current MooseFS mounts
    """
    mock = MagicMock(return_value={"stdout": ""})
    with patch.dict(moosefs.__salt__, {"cmd.run_all": mock}):
        assert moosefs.mounts() == {}