From 42301c111758d5d0de46936481469e730707261e Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 29 Mar 2004 14:05:35 +0000 Subject: [PATCH] Add a test for the recent Http.stockquote bug and remove testing of Http.weather (I thought I had already committed this) --- test/test_Http.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/test/test_Http.py b/test/test_Http.py index 072c7a5f0..7242f0acf 100644 --- a/test/test_Http.py +++ b/test/test_Http.py @@ -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')