

def test_from_flavor_as_object(self):
    flavor = objects.Flavor()
    spec = objects.RequestSpec()
    flavor._from_flavor(flavor)
    self.assertEqual(flavor, spec.flavor)

dataset/ETHPy150Open openstack/nova/nova/tests/unit/objects/test_request_spec.py _TestRequestSpecObject.test_from_flavor_as_object/VarMisuse@26/33 `spec`->`flavor`