00001
00002
00003
00004
00005
00006 import os, sys, unittest, time
00007 from ServiceTest import main, ServiceTestCase, ServiceTestSuite
00008 from ZSI import FaultException
00009 from ZSI.TC import _get_global_element_declaration as GED
00010 from ZSI.writer import SoapWriter
00011 from ZSI.parse import ParsedSoap
00012
00013 """
00014 Unittest for Bug Report
00015 [ ]
00016
00017 test_WSDLImport.wsdl
00018 test_WSDLImport2.wsdl
00019
00020 """
00021
00022
00023 def dispatch():
00024 """Run all dispatch tests"""
00025 suite = ServiceTestSuite()
00026 suite.addTest(unittest.makeSuite(WSDLImportTestCase, 'test_dispatch'))
00027 return suite
00028
00029 def local():
00030 """Run all local tests"""
00031 suite = ServiceTestSuite()
00032 suite.addTest(unittest.makeSuite(WSDLImportTestCase, 'test_local'))
00033 return suite
00034
00035 def net():
00036 """Run all network tests"""
00037 suite = ServiceTestSuite()
00038 suite.addTest(unittest.makeSuite(WSDLImportTestCase, 'test_net'))
00039 return suite
00040
00041 def all():
00042 """Run all tests"""
00043 suite = ServiceTestSuite()
00044 suite.addTest(unittest.makeSuite(WSDLImportTestCase, 'test_'))
00045 return suite
00046
00047
00048 class WSDLImportTestCase(ServiceTestCase):
00049 name = "test_WSDLImport"
00050 types_file_name = "OutSchemaTest_client.py"
00051
00052 def __init__(self, methodName):
00053 ServiceTestCase.__init__(self, methodName)
00054 self.wsdl2py_args.append('-b')
00055
00056 def test_local_attribute1(self):
00057 """
00058 """
00059 return
00060
00061 if __name__ == "__main__" :
00062 main()
00063