mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-17 23:52:46 +01:00
Add tests for "command named same as nested command class".
This commit is contained in:
parent
c621905d91
commit
8ce5a18120
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user