def test_self_awareness(self):
        put_data_ctx('k', 'v')
        task = huey.dequeue()
        huey.execute(task)
        self.assertEqual(state['last_task_class'], 'queuecmd_put_data_ctx')
        del state['last_task_class']

        put_data('k', 'x')
        huey.execute(huey.dequeue())
        self.assertFalse('last_task_class' in state)
dataset/ETHPy150Open coleifer/huey/huey/tests/test_queue.py/TestHueyQueueAPIs.test_self_awareness/original