Skip to content

Commit

Permalink
remove render check
Browse files Browse the repository at this point in the history
  • Loading branch information
papajohn committed Aug 5, 2015
1 parent 474803b commit 5f2823a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/test_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,8 @@ def test_currency_format():
""")


# def test_date_format():
# vs = ['2015-07-01 22:39:44.900351']
# t = Table([vs], ['time'])
# t.set_format('time', DateFormatter("%Y-%m-%d %H:%M:%S.%f"))
# assert_equal(t['time'][0], 1435815584.9) # values are timestamps
# assert_equal(t, """
# time
# 2015-07-01 22:39:44.900351
# """)
def test_date_format():
vs = ['2015-07-01 22:39:44.900351']
t = Table([vs], ['time'])
t.set_format('time', DateFormatter("%Y-%m-%d %H:%M:%S.%f"))
assert_equal(t['time'][0], 1435815584.9) # values are timestamps

0 comments on commit 5f2823a

Please sign in to comment.