def test_list_exports(self):
        file_d = '\n'.join(['A B1(23'])
        with patch('salt.utils.fopen',
                   mock_open(read_data=file_d), create=True) as mfi:
            mfi.return_value.__iter__.return_value = file_d.splitlines()
            self.assertDictEqual(nfs3.list_exports(),
                                 {'A': [{'hosts': ['B1'], 'options': ['23']}]})
Test for List configured exports
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/nfs3_test.py/NfsTestCase.test_list_exports