mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Add a test for the recent Http.stockquote bug and remove testing of
Http.weather (I thought I had already committed this)
This commit is contained in:
parent
ba31427156
commit
42301c1117
@ -32,7 +32,7 @@
|
||||
from testsupport import *
|
||||
|
||||
if network:
|
||||
class HttpTest(PluginTestCase, PluginDocumentation):
|
||||
class HttpTest(PluginTestCase):
|
||||
plugins = ('Http',)
|
||||
def testExtension(self):
|
||||
self.assertHelp('extension')
|
||||
@ -57,6 +57,7 @@ if network:
|
||||
|
||||
def testStockquote(self):
|
||||
self.assertNotError('stockquote MSFT')
|
||||
self.assertError('stockquote MSFT SCOX')
|
||||
|
||||
def testFreshmeat(self):
|
||||
self.assertNotError('freshmeat supybot')
|
||||
@ -102,17 +103,6 @@ if network:
|
||||
def testNetcraft(self):
|
||||
self.assertNotError('netcraft slashdot.org')
|
||||
|
||||
def testWeather(self):
|
||||
self.assertNotError('weather Columbus, OH')
|
||||
self.assertNotError('weather 43221')
|
||||
self.assertNotRegexp('weather Paris, FR', 'Virginia')
|
||||
self.assertError('weather alsdkfjasdl, asdlfkjsadlfkj')
|
||||
self.assertNotError('weather London, uk')
|
||||
self.assertNotError('weather London, UK')
|
||||
self.assertNotError('weather Munich, de')
|
||||
self.assertNotError('weather Tucson, AZ')
|
||||
self.assertError('weather hell')
|
||||
|
||||
def testKernel(self):
|
||||
self.assertNotError('kernel')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user