mirror of
https://github.com/kennethreitz/maya.git
synced 2026-06-05 23:00:18 +00:00
Implement str protocol for human readable datetime printing
This commit is contained in:
+3
-1
@@ -64,7 +64,9 @@ def test_print_date(capsys):
|
||||
|
||||
print(d)
|
||||
out, err = capsys.readouterr()
|
||||
assert out == '<MayaDT epoch=1321488000.0>\n'
|
||||
|
||||
assert out == 'Thu, 17 Nov 2011 00:00:00 GMT\n'
|
||||
assert repr(d) == '<MayaDT epoch=1321488000.0>'
|
||||
|
||||
|
||||
def test_invalid_date():
|
||||
|
||||
Reference in New Issue
Block a user