@mock.patch.object(timeutils, 'utcnow', autospec=True)
def test_touch_node_provisioning(self, mock_utcnow):
    test_time = datetime.datetime(2000, 1, 1, 0, 0)
    mock_utcnow.return_value = test_time
    node = utils.create_test_node()
    self.assertIsNone(node.provision_updated_at)
    self.dbapi.touch_node_provisioning(node.uuid)
    node = self.dbapi.get_node_by_uuid(node.uuid)
    self.assertEqual(test_time, timeutils.normalize_time(node.provision_updated_at))
@mock.patch.object(timeutils, 'utcnow', autospec=True)
def test_touch_node_provisioning(self, mock_utcnow):
    test_time = datetime.datetime(2000, 1, 1, 0, 0)
    mock_utcnow.return_value = test_time
    node = utils.create_test_node()
    self.assertIsNone(node.provision_updated_at)
    self.dbapi.touch_node_provisioning(node.uuid)
    node = self.dbapi.get_node_by_uuid(node.uuid)
    self.assertEqual(test_time, timeutils.normalize_time(node.provision_updated_at))