diff options
author | hut <hut@lavabit.com> | 2010-02-17 22:56:19 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-03-09 14:40:20 +0100 |
commit | e975b52f9e83bf2ca3fbb6cf066ccd662518a7df (patch) | |
tree | c8df188babfba271d0498dc69fc2e4728879d739 | |
parent | 933463fd93425228e2c1e0439fde75b8167cdbc9 (diff) | |
download | ranger-e975b52f9e83bf2ca3fbb6cf066ccd662518a7df.tar.gz |
keyparser: updated test_tree_deep_copy
-rw-r--r-- | test/tc_newkeys.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/tc_newkeys.py b/test/tc_newkeys.py index e8a8dbee..10519dbf 100644 --- a/test/tc_newkeys.py +++ b/test/tc_newkeys.py @@ -310,7 +310,6 @@ class Tree(object): else: return tree - class KeyMap(Tree): """Contains a tree with all the keybindings""" def add(self, *args, **keywords): @@ -656,12 +655,12 @@ class Test(PressTestCase): def test_tree_deep_copy(self): t = Tree() - s = t.plow('abc') - s['d'] = "X" + s = t.plow('abcd') + s.replace('X') u = t.copy() self.assertEqual(t._tree, u._tree) - s = t.traverse('ab') - s['c'] = 'Y' + s = t.traverse('abc') + s.replace('Y') self.assertNotEqual(t._tree, u._tree) |