diff options
author | hut <hut@lavabit.com> | 2010-06-03 22:06:42 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-06-03 22:06:42 +0200 |
commit | cfa5ab76e62d73af76f131cb82938faa069e332e (patch) | |
tree | 54cd9819fd80ffce6b2c4bcacda2b71b33b77406 /test/tc_ansi.py | |
parent | 7a0f5d2f25a807e80a691c1346043a993d9d2214 (diff) | |
download | ranger-cfa5ab76e62d73af76f131cb82938faa069e332e.tar.gz |
gui.ansi: some modifications/completions
Diffstat (limited to 'test/tc_ansi.py')
-rw-r--r-- | test/tc_ansi.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/tc_ansi.py b/test/tc_ansi.py index 5fc4e53b..0a6ad8b1 100644 --- a/test/tc_ansi.py +++ b/test/tc_ansi.py @@ -19,12 +19,6 @@ import unittest from ranger.gui import ansi class TestDisplayable(unittest.TestCase): - def setUp(self): - pass - - def tearDown(self): - pass - def test_char_len(self): ansi_string = "[0;30;40mX[0m" self.assertEqual(ansi.char_len(ansi_string), 1) @@ -39,7 +33,8 @@ class TestDisplayable(unittest.TestCase): def test_char_slice(self): ansi_string = "[0;30;40mX[0;31;41mY[0m" - self.assertEqual(ansi.char_slice(ansi_string, 0, 1), "[0;30;40mX") + expected = "[0;30;40mX" + self.assertEqual(ansi.char_slice(ansi_string, 0, 1), expected) if __name__ == '__main__': unittest.main() |