From e617f7cb78e375ecd3bb0df18633a3a5f05e1d02 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Mon, 20 Jul 2009 20:08:11 +1000 Subject: Support microsecond times. --- python/subunit/tests/test_test_protocol.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'python/subunit/tests') diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py index 1ffaf30..f140b87 100644 --- a/python/subunit/tests/test_test_protocol.py +++ b/python/subunit/tests/test_test_protocol.py @@ -17,12 +17,14 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +import datetime import unittest from StringIO import StringIO import os import subunit import sys -import time + +import subunit.iso8601 as iso8601 class MockTestProtocolServerClient(object): @@ -779,7 +781,8 @@ class TestTestProtocolServerStreamTime(unittest.TestCase): stream=self.stream) self.protocol.lineReceived("time: 2001-12-12 12:59:59Z\n") self.assertEqual("", self.stream.getvalue()) - self.assertEqual(1008161999, self.result._time) + self.assertEqual(datetime.datetime(2001, 12, 12, 12, 59, 59, 0, + iso8601.Utc()), self.result._time) class TestRemotedTestCase(unittest.TestCase): -- cgit v1.2.1