about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-06-03 22:06:42 +0200
committerhut <hut@lavabit.com>2010-06-03 22:06:42 +0200
commitcfa5ab76e62d73af76f131cb82938faa069e332e (patch)
tree54cd9819fd80ffce6b2c4bcacda2b71b33b77406 /test
parent7a0f5d2f25a807e80a691c1346043a993d9d2214 (diff)
downloadranger-cfa5ab76e62d73af76f131cb82938faa069e332e.tar.gz
gui.ansi: some modifications/completions
Diffstat (limited to 'test')
-rw-r--r--test/tc_ansi.py9
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 = "X"
 		self.assertEqual(ansi.char_len(ansi_string), 1)
@@ -39,7 +33,8 @@ class TestDisplayable(unittest.TestCase):
 
 	def test_char_slice(self):
 		ansi_string = "XY"
-		self.assertEqual(ansi.char_slice(ansi_string, 0, 1), "X")
+		expected = "X"
+		self.assertEqual(ansi.char_slice(ansi_string, 0, 1), expected)
 
 if __name__ == '__main__':
 	unittest.main()