00001
00002
00003
00004
00005
00006 import os, sys, unittest
00007 from ServiceTest import main, ServiceTestCase, ServiceTestSuite
00008 from ZSI import FaultException
00009 """
00010 Unittest
00011
00012 WSDL: http://javatest2.infodata.se/webservices/services/Infobil?wsdl
00013 """
00014
00015
00016 def dispatch():
00017 """Run all dispatch tests"""
00018 suite = ServiceTestSuite()
00019 suite.addTest(unittest.makeSuite(TestCase, 'test_dispatch'))
00020 return suite
00021
00022 def local():
00023 """Run all local tests"""
00024 suite = ServiceTestSuite()
00025 suite.addTest(unittest.makeSuite(TestCase, 'test_local'))
00026 return suite
00027
00028 def net():
00029 """Run all network tests"""
00030 suite = ServiceTestSuite()
00031 suite.addTest(unittest.makeSuite(TestCase, 'test_net'))
00032 return suite
00033
00034 def all():
00035 """Run all tests"""
00036 suite = ServiceTestSuite()
00037 suite.addTest(unittest.makeSuite(TestCase, 'test_'))
00038 return suite
00039
00040
00041 class TestCase(ServiceTestCase):
00042 name = "test_InfoBil"
00043 client_file_name = "InfoBilServiceService_client.py"
00044 types_file_name = "InfoBilServiceService_types.py"
00045 server_file_name = "InfoBilServiceService_server.py"
00046
00047 def __init__(self, methodName):
00048 ServiceTestCase.__init__(self, methodName)
00049 self.wsdl2py_args.append('-b')
00050
00051 def test_local_import(self):
00052 pass
00053
00054
00055 if __name__ == "__main__" :
00056 main()
00057