diff options
author | hut <hut@lavabit.com> | 2010-08-28 08:01:22 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-08-28 08:01:22 +0200 |
commit | a02baa3311a469a021ed0f801d3a743ecb1ace41 (patch) | |
tree | f85ee42b596502123dc4e30ded3d098d38f7a4f7 /test | |
parent | 0a8001b2a141b141e6e34b1ebcce316288ef7ab7 (diff) | |
download | ranger-a02baa3311a469a021ed0f801d3a743ecb1ace41.tar.gz |
Changed implementation of container.history
Diffstat (limited to 'test')
-rw-r--r-- | test/tc_history.py | 16 |
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() |