Updated for the registry.

This commit is contained in:
Jeremy Fincher 2004-01-31 17:22:32 +00:00
parent 463163d977
commit 487692f4dd

View File

@ -60,18 +60,16 @@ class PythonTestCase(PluginTestCase, PluginDocumentation):
if network:
def testAspnRecipes(self):
self.assertNotError('python config aspn-snarfer on')
self.assertRegexp('http://aspn.activestate.com/ASPN/Cookbook/Python/'
'Recipe/230113',
'Implementation of sets using sorted lists')
try:
conf.supybot.plugins.Python.aspnSnarfer.setValue(True)
self.assertRegexp(
'http://aspn.activestate.com/ASPN/Cookbook/Python/'
'Recipe/230113',
'Implementation of sets using sorted lists')
finally:
conf.supybot.plugins.Python.aspnSnarfer.setValue(False)
def testConfig(self):
self.assertNotError('python config aspn-snarfer off')
self.assertNoResponse('http://aspn.activestate.com/ASPN/Cookbook/'
'Python/Recipe/230113')
self.assertNotError('python config aspn-snarfer on')
self.assertNotError('http://aspn.activestate.com/ASPN/Cookbook/'
'Python/Recipe/230113')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: