@mock.patch.object(timeutils, 'utcnow', autospec=True)
def test_update_node_provision(self, mock_utcnow):
    mocked_time = datetime.datetime(2000, 1, 1, 0, 0)
    mock_utcnow.return_value = mocked_time
    node = utils.create_test_node()
    res = self.dbapi.update_node(node.id, {'provision_state': 'fake'})
    self.assertEqual(mocked_time, timeutils.normalize_time(res['provision_updated_at']))
@mock.patch.object(timeutils, 'utcnow', autospec=True)
def test_update_node_provision(self, mock_utcnow):
    mocked_time = datetime.datetime(2000, 1, 1, 0, 0)
    mock_utcnow.return_value = mocked_time
    node = utils.create_test_node()
    res = self.dbapi.update_node(node.id, {'provision_state': 'fake'})
    self.assertEqual(mocked_time, timeutils.normalize_time(res['provision_updated_at']))