--- a/tests/test_viewer.py Fri Oct 07 13:36:44 2016 +0800
+++ b/tests/test_viewer.py Wed Oct 26 06:51:26 2016 +0800
lines=json_encode(lines),
- started=datetime.now(),
- finished=datetime.now(),
+ started=datetime(2016, 8, 20, 2, 38, 6),
+ finished=datetime(2016, 8, 20, 2, 38, 53),
assert '1 warning' in response.body
assert '<a href="#">default</a>' in response.body
assert '<a href="#" class="filelink">test.py:20</a>' in response.body
+ assert ('<time datetime="2016-08-20T02:38:53Z"'
+ ' title="2016-08-20 02:38:53 UTC">'
+ '2016-08-20 02:38:53 UTC</time>') in response.body
+ assert ('<time datetime="2016-07-19T22:23+0800"'
+ ' title="2016-07-19 22:23 +0800">'
+ '2016-07-19 22:23 +0800</time>') in response.body
response = self.fetch('/example.com/alice/test-viewer/latest/raw')
assert response.code == 200