def test_list_master_dirs_success(self):
        dirs = ['cheesse', 'gravy']
        ret = dirs

        class MockFileClient(object):
            def dir_list(self, saltenv, prefix):
                return dirs

        mock_file_client = MockFileClient()
        with patch.dict(cp.__context__, {'cp.fileclient': mock_file_client}):
            self.assertEqual(cp.list_master_dirs(), ret)
Creates and runs BRIAN network based on the parameters in `traj`.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/cp_test.py/CpTestCase.test_list_master_dirs_success--crossover with--dataset/ETHPy150Open SmokinCaterpillar/pypet/examples/example_23_brian2_network.py/run_net