Test for case-insensitivity.

This commit is contained in:
Jeremy Fincher 2004-08-21 03:00:09 +00:00
parent 0f1842b18d
commit 81ca3238f0

View File

@ -60,6 +60,8 @@ class FunctionsTestCase(SupyTestCase):
self.irc.nick)
self.assertEqual(plugins.standardSubstitute(self.irc, msg, '$who'),
msg.nick)
self.assertEqual(plugins.standardSubstitute(self.irc, msg, '$WHO'),
msg.nick, 'stand. sub. not case-insensitive.')
self.assertEqual(plugins.standardSubstitute(self.irc, msg, '$nick'),
msg.nick)
self.assert_(plugins.standardSubstitute(self.irc, msg, '$randomdate'))