mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Updated for the registry.
This commit is contained in:
parent
463163d977
commit
487692f4dd
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user