def test_dirinfo(self):
        mock = MagicMock(return_value={'stdout': 'Salt:salt'})
        with patch.dict(moosefs.__salt__, {'cmd.run_all': mock}):
            self.assertDictEqual(moosefs.dirinfo('/tmp/salt'), {'Salt': 'salt'})

    # 'fileinfo' function tests: 1
Renew the fake file system and set the _isStale flag to `False`.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/moosefs_test.py/MoosefsTestCase.test_dirinfo--crossover with--dataset/ETHPy150Open jmcgeheeiv/pyfakefs/pyfakefs/fake_filesystem_unittest.py/Patcher._refresh