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()
d6475e9c26f95630b9595bea73fb705'>^
a17f9186 ^
6808ff7d ^

9cfd925a ^
6808ff7d ^
15f79a66 ^
6808ff7d ^
15f79a66 ^





ff8d96ae ^




455fbac6 ^
ff8d96ae ^
bb33c5e8 ^
ff8d96ae ^
bb33c5e8 ^



ff8d96ae ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83