def test__cleanup_stale_sg(self):
    self._prepare_security_group()
    self.firewall.sg_to_delete = {1}
    with mock.patch.object(self.firewall.conj_ip_manager, 'sg_removed') as sg_removed_mock, mock.patch.object(self.firewall.sg_port_map, 'delete_sg') as delete_sg_mock:
        self.firewall._cleanup_stale_sg()
        sg_removed_mock.assert_called_once_with(1)
        delete_sg_mock.assert_called_once_with(1)
def test__cleanup_stale_sg(self):
    self._prepare_security_group()
    self.firewall.sg_to_delete = {1}
    with mock.patch.object(self.firewall.conj_ip_manager, 'sg_removed') as sg_removed_mock, mock.patch.object(self.firewall.sg_port_map, 'delete_sg') as delete_sg_mock:
        self.firewall._cleanup_stale_sg()
        sg_removed_mock.assert_called_once_with(1)
        delete_sg_mock.assert_called_once_with(1)