Adding a test to make sure that bad nesting errors out completely and doesn't

call things like addFactoid.
This commit is contained in:
Daniel DiPaolo 2003-12-19 22:37:04 +00:00
parent 29cdcfb437
commit 38b9cfadc7
1 changed files with 3 additions and 1 deletions

View File

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