Add test to ensure quoted factoids are preserved

This commit is contained in:
James Vega 2009-01-02 17:10:20 +00:00
parent e787c7aa49
commit 1f3d9e64a3

View File

@ -159,5 +159,8 @@ if sqlite:
conf.supybot.plugins.Factoids.\
replyWhenInvalidCommand.setValue(orig)
def testQuoteHandling(self):
self.assertNotError('learn foo as "\\"bar\\""')
self.assertRegexp('whatis foo', r'"bar"')
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79: