Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/i/r/ironic-HEAD/ironic/nova/tests/virt/ironic/test_driver.py   ironic(Download)
    def test_validate_instance_and_node_failed(self):
        icli = cw.IronicClientWrapper()
        with mock.patch.object(FAKE_CLIENT.node, 'get_by_instance_uuid') \
            as mock_gbiui:
            mock_gbiui.side_effect = ironic_exception.HTTPNotFound()
    def test_get_info_http_not_found(self):
        with mock.patch.object(FAKE_CLIENT.node, 'get_by_instance_uuid') \
                as mock_gbiu:
            mock_gbiu.side_effect = ironic_exception.HTTPNotFound()
 
    def test_macs_for_instance_http_not_found(self):
        with mock.patch.object(FAKE_CLIENT.node, 'get') as mock_get:
            mock_get.side_effect = ironic_exception.HTTPNotFound()
 
            instance = fake_instance.fake_instance_obj(