'Tests creating a server with a local image-based block device which
has a boot_index of None which is invalid.'

def test_create_instance_with_boot_index_none_image_local_fails(self):

    bdms = [{'source_type': 'image', 'destination_type': 'local', 'boot_index': None, 'uuid': '155d900f-4e14-4e4c-a73d-069cbf4541e6'}]
    params = {block_device_mapping.ATTRIBUTE_NAME: bdms}
    self.assertRaises(exc.HTTPBadRequest, self._test_create, params, no_image=True)
