def test_network_delete_event(self):
        """Test case for network delete event."""

        self._load_network_info()
        self.assertFalse(self.segid in self.dfa_server.segmentation_pool)
        network_info = {'network_id': FAKE_NETWORK_ID}
        self.dfa_server.get_vms.return_value = []
        self.dfa_server.network_delete_event(network_info)
        self.assertTrue(self.dfa_server.dcnm_client.delete_network.called)
        dcall = self.dfa_server.dcnm_client.delete_network.call_args
        arg1, arg2 = dcall
        self.assertTrue(arg1[0] == FAKE_PROJECT_NAME)
        self.assertTrue(arg1[1].name == FAKE_NETWORK_NAME)
        self.assertTrue(arg1[1].segmentation_id == self.segid)
        self.assertTrue(self.segid in self.dfa_server.segmentation_pool)
        self.assertTrue(self.dfa_server.delete_network_db.called)
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/saf/server/test_dfa_server.py/TestDFAServer.test_network_delete_event/original