

def test_get_flavor_from_id(self):
    self.mock_client().flavors.find.return_value = self.fake_flavor_0
    flavor = self.nova_client.get_flavor_from_id('fake_flavor_id')
    self.assertEqual(self.fake_flavor_0, flavor)

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/tests/lib/os/compute/test_nova.py NovaComputeTestCase.test_get_flavor_from_id/original