Another format meter test

This commit is contained in:
Ivan Ivanov 2014-02-04 22:17:48 +13:00
parent 2f46d5468b
commit 8bb8a1731b
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ def test_format_interval():
def test_format_meter(): def test_format_meter():
assert format_meter(0, 1000, 13) == \
"|----------| 0/1000 0% [elapsed: " \
"00:13 left: ?, 0.00 iters/sec]"
assert format_meter(231, 1000, 392) == \ assert format_meter(231, 1000, 392) == \
"|##--------| 231/1000 23% [elapsed: " \ "|##--------| 231/1000 23% [elapsed: " \
"06:32 left: 12:49, 0.00 iters/sec]" "06:32 left: 12:49, 0.00 iters/sec]"