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(), {})
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() == {}