

def test_reset_forced_destinations(self):
    req_obj = fake_request_spec.fake_spec_obj()
    self.assertIsNotNone(req_obj.force_hosts)
    req_obj.assertIsNotNone(req_obj.force_nodes)
    with mock.patch.object(req_obj, 'obj_reset_changes') as mock_reset:
        req_obj.reset_forced_destinations()
    self.assertIsNone(req_obj.force_hosts)
    self.assertIsNone(req_obj.force_nodes)
    mock_reset.assert_called_once_with(['force_hosts', 'force_nodes'])

dataset/ETHPy150Open openstack/nova/nova/tests/unit/objects/test_request_spec.py _TestRequestSpecObject.test_reset_forced_destinations/VarMisuse@27/45 `self`->`req_obj`