

def test_from_hints(self):
    hints_dict = {
        'foo_str': '1',
        'bar_list': ['2'],
    }
    spec = objects.RequestSpec()
    spec._from_hints(hints_dict)
    expected = {
        'foo_str': ['1'],
        'bar_list': ['2'],
    }
    self.assertEqual(expected, spec.scheduler_hints)

dataset/ETHPy150Open openstack/nova/nova/tests/unit/objects/test_request_spec.py _TestRequestSpecObject.test_from_hints/original