diff options
| author | Robert Collins <robertc@robertcollins.net> | 2009-07-20 20:08:11 +1000 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2009-07-20 20:08:11 +1000 |
| commit | e617f7cb78e375ecd3bb0df18633a3a5f05e1d02 (patch) | |
| tree | 1ee2158e0d74a35b4a7390c7024dcea086982791 /python/subunit/tests | |
| parent | 83e2424fbb77ca1ea6cf4b3fefddd10616b4e95c (diff) | |
| download | subunit-git-e617f7cb78e375ecd3bb0df18633a3a5f05e1d02.tar.gz | |
Support microsecond times.
Diffstat (limited to 'python/subunit/tests')
| -rw-r--r-- | python/subunit/tests/test_test_protocol.py | 7 |
1 files changed, 5 insertions, 2 deletions
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): |
