@mock.patch.object(fakelibvirt.virConnect, "registerCloseCallback")
    def test_close_callback_not_defined(self, mock_close):
        mock_close.side_effect = AttributeError('dd')

        connection = self.host.get_connection()
        self.assertTrue(connection)
@param status_idx: 0 - saved and synced; 1 - saved; 2 - modified
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/virt/libvirt/test_host.py/HostTestCase.test_close_callback_not_defined--crossover with--dataset/ETHPy150Open cpbotha/nvpy/nvpy/view.py/StatusBar.set_note_status_color