From 1f3d9e64a3bc8ae588d694e6914e28f326abac6c Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 2 Jan 2009 17:10:20 +0000 Subject: [PATCH] Add test to ensure quoted factoids are preserved --- plugins/Factoids/test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Factoids/test.py b/plugins/Factoids/test.py index 2465a22f4..a2c1f4a1a 100644 --- a/plugins/Factoids/test.py +++ b/plugins/Factoids/test.py @@ -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: