mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Fix tests from last commit
This commit is contained in:
parent
1b0c2ab95a
commit
22408ce413
@ -41,6 +41,7 @@ class FunctionsTestCase(SupyTestCase):
|
|||||||
class state:
|
class state:
|
||||||
channels = {'#foo': holder()}
|
channels = {'#foo': holder()}
|
||||||
nick = 'foobar'
|
nick = 'foobar'
|
||||||
|
network = 'testnet'
|
||||||
|
|
||||||
@retry()
|
@retry()
|
||||||
def testStandardSubstitute(self):
|
def testStandardSubstitute(self):
|
||||||
@ -82,6 +83,9 @@ class FunctionsTestCase(SupyTestCase):
|
|||||||
c = f(self.irc, msg, '$channel')
|
c = f(self.irc, msg, '$channel')
|
||||||
self.assertEqual(c, msg.args[0])
|
self.assertEqual(c, msg.args[0])
|
||||||
|
|
||||||
|
net = f(self.irc, msg, '$network')
|
||||||
|
self.assertEqual(net, self.irc.network)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user