'Tests that requesting multiple specific network IDs is OK. This test
short-circuits on a FlavorNotFound error.'

@mock.patch.object(objects.Flavor, 'get_by_flavor_id', side_effect=exception.FlavorNotFound(flavor_id='2'))
def test_create_server_multiple_specific_nics_flavornotfound(self, get_flavor):

    self.useFixture(nova_fixtures.AllServicesCurrent())
    ex = self.assertRaises(webob.exc.HTTPBadRequest, self._create_server, [{'uuid': 'e3b686a8-b91d-4a61-a3fc-1b74bb619ddb'}, {'uuid': 'e0f00941-f85f-46ec-9315-96ded58c2f14'}])
    self.assertIn('Flavor    2    could    not    be    found', six.text_type(ex))
