summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>2012-10-09 12:55:44 +0200
committerNicolas Chauvat <nicolas.chauvat@logilab.fr>2012-10-09 12:55:44 +0200
commite4009dd450ea20f87fbb5b7349343c324b96a920 (patch)
tree6e5c46bef0042534a5aacab0b705a1ee5e5d51a0
parent922b08c9fc5e6bd1d442e6c4c801bf34c47dfa2f (diff)
downloadlogilab-common-e4009dd450ea20f87fbb5b7349343c324b96a920.tar.gz
[shellutils] fix tests broken because progress bars now use '=' not '.'
-rw-r--r--test/unittest_shellutils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unittest_shellutils.py b/test/unittest_shellutils.py
index 3bf6bc9..72f9df6 100644
--- a/test/unittest_shellutils.py
+++ b/test/unittest_shellutils.py
@@ -117,7 +117,7 @@ class ProgressBarTC(TestCase):
pgb.update()
if update or (update is None and dots != last):
last = dots
- expected_stream.write("\r["+('.'*dots)+(' '*(size-dots))+"]")
+ expected_stream.write("\r["+('='*dots)+(' '*(size-dots))+"]")
self.assertEqual(pgb_stream.getvalue(), expected_stream.getvalue())
def test_default(self):
@@ -153,7 +153,7 @@ class ProgressBarTC(TestCase):
for dots in xrange(10, 105, 15):
pgb.update(dots, exact=True)
dots /= 5
- expected_stream.write("\r["+('.'*dots)+(' '*(size-dots))+"]")
+ expected_stream.write("\r["+('='*dots)+(' '*(size-dots))+"]")
self.assertEqual(pgb_stream.getvalue(), expected_stream.getvalue())
def test_update_relative(self):
@@ -165,7 +165,7 @@ class ProgressBarTC(TestCase):
for dots in xrange(5, 105, 5):
pgb.update(5, exact=False)
dots /= 5
- expected_stream.write("\r["+('.'*dots)+(' '*(size-dots))+"]")
+ expected_stream.write("\r["+('='*dots)+(' '*(size-dots))+"]")
self.assertEqual(pgb_stream.getvalue(), expected_stream.getvalue())