about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-02-17 22:56:19 +0100
committerhut <hut@lavabit.com>2010-03-09 14:40:20 +0100
commite975b52f9e83bf2ca3fbb6cf066ccd662518a7df (patch)
treec8df188babfba271d0498dc69fc2e4728879d739 /test
parent933463fd93425228e2c1e0439fde75b8167cdbc9 (diff)
downloadranger-e975b52f9e83bf2ca3fbb6cf066ccd662518a7df.tar.gz
keyparser: updated test_tree_deep_copy
Diffstat (limited to 'test')
-rw-r--r--test/tc_newkeys.py9
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)