From 0c77571ce81e22cb5d0500d6d9100635784b3a00 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 5 Sep 2003 15:37:56 +0000 Subject: [PATCH] Added test for searchfactoids. --- test/test_Factoids.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/test_Factoids.py b/test/test_Factoids.py index 79d7d5ea7..c17afe33a 100644 --- a/test/test_Factoids.py +++ b/test/test_Factoids.py @@ -66,6 +66,17 @@ class FactoidsTestCase(ChannelPluginTestCase): self.assertRegexp('learn foo bar baz', '^learn') # No 'as' self.assertRegexp('learn foo bar', '^learn') # No 'as' + def testSearchFactoids(self): + self.assertNotError('learn jemfinch as my primary author') + self.assertNotError('learn strike as another cool guy working on me') + self.assertNotError('learn inkedmn as another of my developers') + self.assertNotError('learn jamessan as a developer of much python') + self.assertNotError('learn bwp as the author of my weather command') + self.assertRegexp('searchfactoids /.w./', 'bwp') + self.assertRegexp('searchfactoids /^.+i/', 'jemfinch.*strike') + self.assertNotRegexp('searchfactoids /^.+i/', 'inkedmn') + self.assertRegexp('searchfactoids /^j/', 'jemfinch.*jamessan') + # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: