mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Raise exception in PluginsTestCase.setUp if no self.plugins.
This commit is contained in:
parent
0f8350528b
commit
65af25467a
@ -101,6 +101,8 @@ class PluginTestCase(unittest.TestCase):
|
||||
timeout = 10
|
||||
plugins = ()
|
||||
def setUp(self, nick='test'):
|
||||
if not self.plugins:
|
||||
raise ValueError, 'PluginTestCase must have a "plugins" attribute.'
|
||||
self.nick = nick
|
||||
self.prefix = ircutils.joinHostmask(nick, 'user', 'host.domain.tld')
|
||||
self.irc = irclib.Irc(nick)
|
||||
|
Loading…
Reference in New Issue
Block a user