From 11ff42afa10b6335b7cf421e0c8bb645ae6840b4 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 14 Jan 2010 00:20:34 +0100 Subject: commandlist: bugfix --- test/tc_commandlist.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/tc_commandlist.py b/test/tc_commandlist.py index f1edfa20..f00805e8 100644 --- a/test/tc_commandlist.py +++ b/test/tc_commandlist.py @@ -53,21 +53,22 @@ class Test(TestCase): self.assertEqual(fnc, cl['aaaa'].execute) # ------------------------ test aliases - cl.alias('aaaa', 'c') + cl.alias('aaaa', 'cc') cl.rebuild_paths() - self.assertEqual(cl['c'].execute, cl['aaaa'].execute) + self.assertEqual(dmy, cl['c']) + self.assertEqual(cl['cc'].execute, cl['aaaa'].execute) cl.bind(fnc2, 'aaaa') cl.rebuild_paths() - self.assertEqual(cl['c'].execute, cl['aaaa'].execute) + self.assertEqual(cl['cc'].execute, cl['aaaa'].execute) - cl.unbind('c') + cl.unbind('cc') cl.rebuild_paths() self.assertEqual(fnc2, cl['aaaa'].execute) - self.assertKeyError(cl, 'c') + self.assertKeyError(cl, 'cc') # ----------------------- test clearing cl.clear() -- cgit 1.4.1-2-gfad0