@@ -6,6 +6,16 @@ from test_wsdl import WSDLToolsTestCase, NETWORK, STANDALONE
CONFIG = None
class HomeLandSecurityTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'homelandsecurity'
self.loadFromConfig(CONFIG)
class Rtf2htmlTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'rtf2html'
self.loadFromConfig(CONFIG)
class AmazonTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'amazon'
@@ -21,7 +31,103 @@ class OGSITestCase(WSDLToolsTestCase):
self.option = 'ogsi'
self.loadFromConfig(CONFIG)
CASES = [AmazonTestCase, AirportTestCase, OGSITestCase]
class BooksTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'books'
self.loadFromConfig(CONFIG)
class DistanceTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'distance'
self.loadFromConfig(CONFIG)
class FreeDBTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'freedb'
self.loadFromConfig(CONFIG)
class GlobalWeatherTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'globalweather'
self.loadFromConfig(CONFIG)
class IHaddockTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'IHaddock'
self.loadFromConfig(CONFIG)
class Ip2geoTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'ip2geo'
self.loadFromConfig(CONFIG)
class MagicTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'magic'
self.loadFromConfig(CONFIG)
class QueryTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'query'
self.loadFromConfig(CONFIG)
class RateInfoTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'RateInfo'
self.loadFromConfig(CONFIG)
class SHA1EncryptTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'SHA1Encrypt'
self.loadFromConfig(CONFIG)
class SiteInspectTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'siteInspect'
self.loadFromConfig(CONFIG)
class SolveSystemsTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'SolveSystem'
self.loadFromConfig(CONFIG)
class TemperatureServiceTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'TemperatureService'
self.loadFromConfig(CONFIG)
class USweatherTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'usweather'
self.loadFromConfig(CONFIG)
class Zip2geoTestCase(WSDLToolsTestCase):
def test(self):
self.option = 'zip2geo'
self.loadFromConfig(CONFIG)
CASES = [AirportTestCase,
AmazonTestCase,
BooksTestCase,
DistanceTestCase,
FreeDBTestCase,
GlobalWeatherTestCase,
HomeLandSecurityTestCase,
IHaddockTestCase,
Ip2geoTestCase,
MagicTestCase,
OGSITestCase,
QueryTestCase,
RateInfoTestCase,
Rtf2htmlTestCase,
SHA1EncryptTestCase,
SiteInspectTestCase,
SolveSystemsTestCase,
TemperatureServiceTestCase,
USweatherTestCase,
WSDLToolsTestCase,
Zip2geoTestCase]
def makeNetworkSuite():
return getSuite(NETWORK)
@@ -32,8 +138,9 @@ def getSuite(section):
tests = []
suite = unittest.TestSuite()
loader = unittest.TestLoader()
WSDLToolsTestCase.section = section
for case in CASES:
case.section = section
# case.section = section
test = loader.loadTestsFromTestCase(case)
tests.append(test)
suite.addTests(tests)