From 8bb8a1731be429f1a93dbc2b351e747faf355960 Mon Sep 17 00:00:00 2001 From: Ivan Ivanov Date: Tue, 4 Feb 2014 22:17:48 +1300 Subject: [PATCH] Another format meter test --- tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests.py b/tests.py index 220cfa9b..a208487e 100644 --- a/tests.py +++ b/tests.py @@ -9,7 +9,9 @@ def test_format_interval(): 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) == \ "|##--------| 231/1000 23% [elapsed: " \ "06:32 left: 12:49, 0.00 iters/sec]" -