mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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:
|
if network:
|
||||||
def testAspnRecipes(self):
|
def testAspnRecipes(self):
|
||||||
self.assertNotError('python config aspn-snarfer on')
|
try:
|
||||||
self.assertRegexp('http://aspn.activestate.com/ASPN/Cookbook/Python/'
|
conf.supybot.plugins.Python.aspnSnarfer.setValue(True)
|
||||||
'Recipe/230113',
|
self.assertRegexp(
|
||||||
'Implementation of sets using sorted lists')
|
'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:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
Loading…
Reference in New Issue
Block a user