def test_del_export(self):
        with patch.object(nfs3,
                          'list_exports',
                          return_value={'A':
                                        [{'hosts':
                                          ['B1'], 'options': ['23']}]}):
            with patch.object(nfs3, '_write_exports', return_value=None):
                self.assertDictEqual(nfs3.del_export(path='A'), {})
Test for Remove an export
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/nfs3_test.py/NfsTestCase.test_del_export