From b7efbf409cc7cbed3b368d8eb7eda5dbcc885449 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 5 Sep 2012 21:50:42 -0400 Subject: [PATCH] Plugin: Fix failures in testPlugin The tests were running into the ambiguity between nested commands and commands with the same name as their plugin, so "plugin plugin" is treated as specifying the plugin command from the plugin plugin. This leads to it displaying the help, since an argument is expected. Since the Utilities plugin is already loaded by the test suite, use a command from it as the argument to the plugin command. Signed-off-by: James McCoy --- plugins/Plugin/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Plugin/test.py b/plugins/Plugin/test.py index b5715adea..1845a3e18 100644 --- a/plugins/Plugin/test.py +++ b/plugins/Plugin/test.py @@ -32,8 +32,8 @@ from supybot.test import * class PluginTestCase(PluginTestCase): plugins = ('Plugin', 'Utilities') def testPlugin(self): - self.assertRegexp('plugin plugin', 'available.*Plugin plugin') - self.assertResponse('echo [plugin plugin]', 'Plugin') + self.assertRegexp('plugin ignore', 'available.*Utilities plugin') + self.assertResponse('echo [plugin ignore]', 'Utilities') def testList(self): self.assertRegexp('plugin list', 'Plugin.*Utilities')