From c4f06553229dd8c49a4aed7794d9a7129de81ae3 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sat, 13 Aug 2016 09:32:37 -0400 Subject: [PATCH] Log what travis thinks the date is --- test/tasks/test_ice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/tasks/test_ice.py b/test/tasks/test_ice.py index 7fde444..1d44a69 100644 --- a/test/tasks/test_ice.py +++ b/test/tasks/test_ice.py @@ -1,9 +1,9 @@ from unittest import TestCase from datetime import datetime import pytz +import logging from metrik.tasks.ice import LiborRateTask -from metrik.conf import USER_AGENT # noinspection PyUnresolvedReferences @@ -23,6 +23,7 @@ class TestICE(TestCase): london_tz = pytz.timezone('Europe/London') actual = london_tz.localize(datetime(2016, 8, 8, 11, 45, 6)) + logging.info('Publication date in London time: {}'.format(aug8_libor['publication'].astimezone(london_tz))) assert aug8_libor['publication'] == actual def test_correct_libor_Aug9_2010(self): @@ -40,6 +41,7 @@ class TestICE(TestCase): london_tz = pytz.timezone('Europe/London') actual = london_tz.localize(datetime(2010, 8, 9, 15, 49, 12)) + logging.info('Publication date in London time: {}'.format(aug9_libor['publication'].astimezone(london_tz))) assert aug9_libor['publication'] == actual def test_correct_date_reasoning(self):