summary refs log tree commit diff stats
path: root/test/tc_history.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-08-28 08:01:22 +0200
committerhut <hut@lavabit.com>2010-08-28 08:01:22 +0200
commita02baa3311a469a021ed0f801d3a743ecb1ace41 (patch)
treef85ee42b596502123dc4e30ded3d098d38f7a4f7 /test/tc_history.py
parent0a8001b2a141b141e6e34b1ebcce316288ef7ab7 (diff)
downloadranger-a02baa3311a469a021ed0f801d3a743ecb1ace41.tar.gz
Changed implementation of container.history
Diffstat (limited to 'test/tc_history.py')
-rw-r--r--test/tc_history.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/tc_history.py b/test/tc_history.py
index b1161f2a..301ebedd 100644
--- a/test/tc_history.py
+++ b/test/tc_history.py
@@ -27,13 +27,13 @@ class Test(TestCase):
 		hist.back()
 
 		self.assertEqual(4, hist.current())
-		self.assertEqual([3,4], list(hist))
+		self.assertEqual([3,4], list(hist._left()))
 
 		self.assertEqual(5, hist.top())
 
 		hist.back()
 		self.assertEqual(3, hist.current())
-		self.assertEqual([3], list(hist))
+		self.assertEqual([3], list(hist._left()))
 
 		# no change if current == bottom
 		self.assertEqual(hist.current(), hist.bottom())
@@ -46,31 +46,31 @@ class Test(TestCase):
 		hist.forward()
 		hist.forward()
 		self.assertEqual(5, hist.current())
-		self.assertEqual([3,4,5], list(hist))
+		self.assertEqual([3,4,5], list(hist._left()))
 
 
 		self.assertEqual(3, hist.bottom())
 		hist.add(6)
 		self.assertEqual(4, hist.bottom())
-		self.assertEqual([4,5,6], list(hist))
+		self.assertEqual([4,5,6], list(hist._left()))
 
 		hist.back()
 		hist.fast_forward()
-		self.assertEqual([4,5,6], list(hist))
+		self.assertEqual([4,5,6], list(hist._left()))
 		hist.back()
 		hist.back()
 		hist.fast_forward()
-		self.assertEqual([4,5,6], list(hist))
+		self.assertEqual([4,5,6], list(hist._left()))
 		hist.back()
 		hist.back()
 		hist.back()
 		hist.fast_forward()
-		self.assertEqual([4,5,6], list(hist))
+		self.assertEqual([4,5,6], list(hist._left()))
 		hist.back()
 		hist.back()
 		hist.back()
 		hist.back()
 		hist.fast_forward()
-		self.assertEqual([4,5,6], list(hist))
+		self.assertEqual([4,5,6], list(hist._left()))
 
 if __name__ == '__main__': main()