Add tests for "command named same as nested command class".

This commit is contained in:
James Vega 2005-04-13 15:51:50 +00:00
parent c621905d91
commit 8ce5a18120

View File

@ -534,11 +534,13 @@ class SourceNestedPluginTestCase(PluginTestCase):
cb = self.E(self.irc)
self.irc.addCallback(cb)
self.assertEqual(cb.getCommand(['f']), ['f'])
self.assertEqual(cb.getCommand(['g']), ['g'])
self.assertEqual(cb.getCommand(['e', 'f']), ['e', 'f'])
self.assertEqual(cb.getCommand(['e', 'g', 'h']), ['e', 'g', 'h'])
self.assertEqual(cb.getCommand(['e', 'g', 'i', 'j']),
['e', 'g', 'i', 'j'])
self.assertResponse('e f', 'f')
self.assertResponse('e g', 'g')
self.assertResponse('e g h', 'h')
self.assertResponse('e g i j', 'j')
self.assertHelp('help f')