Fix tests from last commit

This commit is contained in:
James Lu 2016-03-15 08:35:46 -07:00
parent 1b0c2ab95a
commit 22408ce413

View File

@ -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)