def test_get_node_by_instance_wrong_uuid(self):
    utils.create_test_node(instance_uuid='12345678-9999-0000-aaaa-123456789012')
    self.assertRaises(exception.InstanceNotFound, self.dbapi.get_node_by_instance, '12345678-9999-0000-bbbb-123456789012')
def test_get_node_by_instance_wrong_uuid(self):
    utils.create_test_node(instance_uuid='12345678-9999-0000-aaaa-123456789012')
    self.assertRaises(exception.InstanceNotFound, self.dbapi.get_node_by_instance, '12345678-9999-0000-bbbb-123456789012')