def test_utc_conversion(self):
        from luigi.server import from_utc

        task = DummyTask()
        self.run_task(task)

        task_record = six.advance_iterator(self.history.find_all_by_name('DummyTask'))
        last_event = task_record.events[0]
        try:
            print(from_utc(str(last_event.ts)))
        except __HOLE__:
            self.fail("Failed to convert timestamp {} to UTC".format(last_event.ts))
dataset/ETHPy150Open spotify/luigi/test/db_task_history_test.py/MySQLDbTaskHistoryTest.test_utc_conversion