mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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 *
|
from testsupport import *
|
||||||
|
|
||||||
if network:
|
if network:
|
||||||
class HttpTest(PluginTestCase, PluginDocumentation):
|
class HttpTest(PluginTestCase):
|
||||||
plugins = ('Http',)
|
plugins = ('Http',)
|
||||||
def testExtension(self):
|
def testExtension(self):
|
||||||
self.assertHelp('extension')
|
self.assertHelp('extension')
|
||||||
@ -57,6 +57,7 @@ if network:
|
|||||||
|
|
||||||
def testStockquote(self):
|
def testStockquote(self):
|
||||||
self.assertNotError('stockquote MSFT')
|
self.assertNotError('stockquote MSFT')
|
||||||
|
self.assertError('stockquote MSFT SCOX')
|
||||||
|
|
||||||
def testFreshmeat(self):
|
def testFreshmeat(self):
|
||||||
self.assertNotError('freshmeat supybot')
|
self.assertNotError('freshmeat supybot')
|
||||||
@ -102,17 +103,6 @@ if network:
|
|||||||
def testNetcraft(self):
|
def testNetcraft(self):
|
||||||
self.assertNotError('netcraft slashdot.org')
|
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):
|
def testKernel(self):
|
||||||
self.assertNotError('kernel')
|
self.assertNotError('kernel')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user