From b1473f2eae121c461a894e675780927c185604f9 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 27 Aug 2014 19:29:32 +0200 Subject: [PATCH] tests: fix output tests after changed progressbar size. --- lib/svtplay_dl/tests/output.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/svtplay_dl/tests/output.py b/lib/svtplay_dl/tests/output.py index a05bc84..a93359f 100644 --- a/lib/svtplay_dl/tests/output.py +++ b/lib/svtplay_dl/tests/output.py @@ -50,37 +50,37 @@ class progressbarTest(unittest.TestCase): def test_0_100(self): svtplay_dl.output.progressbar(100, 0) self.assertEqual( - self.mockfile.read(), "\r[000/100][.........................] " + self.mockfile.read(), "\r[000/100][...............] " ) def test_progress_1_100(self): svtplay_dl.output.progressbar(100, 1) self.assertEqual( - self.mockfile.read(), "\r[001/100][.........................] " + self.mockfile.read(), "\r[001/100][...............] " ) def test_progress_2_100(self): svtplay_dl.output.progressbar(100, 2) self.assertEqual( - self.mockfile.read(), "\r[002/100][.........................] " + self.mockfile.read(), "\r[002/100][...............] " ) def test_progress_50_100(self): svtplay_dl.output.progressbar(100, 50) self.assertEqual( - self.mockfile.read(), "\r[050/100][============.............] " + self.mockfile.read(), "\r[050/100][=======........] " ) def test_progress_100_100(self): svtplay_dl.output.progressbar(100, 100) self.assertEqual( - self.mockfile.read(), "\r[100/100][=========================] " + self.mockfile.read(), "\r[100/100][===============] " ) def test_progress_20_100_msg(self): svtplay_dl.output.progressbar(100, 20, "msg") self.assertEqual( - self.mockfile.read(), "\r[020/100][=====....................] msg" + self.mockfile.read(), "\r[020/100][===............] msg" ) def test_progress_20_100_termwidth(self): @@ -88,7 +88,7 @@ class progressbarTest(unittest.TestCase): svtplay_dl.output.progressbar(100, 20) self.assertEqual( self.mockfile.read(), - "\r[020/100][==========........................................] " + "\r[020/100][========................................] " ) class EtaTest(unittest.TestCase):