From 38b9cfadc741487f6841b54dae7b747e19b595fd Mon Sep 17 00:00:00 2001 From: Daniel DiPaolo Date: Fri, 19 Dec 2003 22:37:04 +0000 Subject: [PATCH] Adding a test to make sure that bad nesting errors out completely and doesn't call things like addFactoid. --- test/test_MoobotFactoids.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_MoobotFactoids.py b/test/test_MoobotFactoids.py index 67df13477..3e71a6a5f 100644 --- a/test/test_MoobotFactoids.py +++ b/test/test_MoobotFactoids.py @@ -294,7 +294,9 @@ if sqlite is not None: self.irc.feedMsg(ircmsgs.privmsg(self.irc.nick, '\x01VERSION\x01')) m = self.irc.takeMsg() self.failIf(m) - + def testAddFactoidNotCalledWithBadNestingSyntax(self): + self.assertError('re s/Error:.*/jbm is a tard/ ]') + self.assertNoResponse(' ', 3) # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: