Пример #1
0
 def ping(self):
     gridLog(event="zsi.test.test_callhome.ping",
             zsi="v%d.%d.%d" % version.Version,
             prog="test_callhome.py")
Пример #2
0
    sections = [\
        'rpc_encoded' , 'rpc_encoded_broke',
        'rpc_literal', 'rpc_literal_broke', 'rpc_literal_broke_interop',
        'doc_literal', 'doc_literal_broke', 'doc_literal_broke_interop',
    ]
    boo = cp.getboolean
    for s,d,l,b in map(\
        lambda sec: \
            (sec, (None,boo(sec,DOCUMENT)), (None,boo(sec,LITERAL)), (None,boo(sec,BROKE))), sections):
        if document in d and literal in l and broke in b:
            testSections.append(s)

    suite = unittest.TestSuite()
    for section in testSections:
        moduleList = cp.get(section, TESTS).split()
        for module in  map(__import__, moduleList):
            def _warn_empty():
                warnings.warn('"%s" has no test "%s"' %(module, test))
                return unittest.TestSuite()

            s = getattr(module, test, _warn_empty)()
            suite.addTest(s)
    return suite


if __name__ == "__main__":
    gridLog(prog="runTests.py", zsi="v%d.%d.%d" % version.Version, event="zsi.test.wsdl2py.runTests.ping")
    main()


Пример #3
0
 def ping(self):
     gridLog(event="zsi.test.test_callhome.ping", zsi="v%d.%d.%d" % version.Version,
         prog="test_callhome.py")
Пример #4
0
        'rpc_encoded' , 'rpc_encoded_broke',
        'rpc_literal', 'rpc_literal_broke', 'rpc_literal_broke_interop',
        'doc_literal', 'doc_literal_broke', 'doc_literal_broke_interop',
    ]
    boo = cp.getboolean
    for s,d,l,b in map(\
        lambda sec: \
            (sec, (None,boo(sec,DOCUMENT)), (None,boo(sec,LITERAL)), (None,boo(sec,BROKE))), sections):
        if document in d and literal in l and broke in b:
            testSections.append(s)

    suite = unittest.TestSuite()
    for section in testSections:
        moduleList = cp.get(section, TESTS).split()
        for module in map(__import__, moduleList):

            def _warn_empty():
                warnings.warn('"%s" has no test "%s"' % (module, test))
                return unittest.TestSuite()

            s = getattr(module, test, _warn_empty)()
            suite.addTest(s)
    return suite


if __name__ == "__main__":
    gridLog(prog="runTests.py",
            zsi="v%d.%d.%d" % version.Version,
            event="zsi.test.wsdl2py.runTests.ping")
    main()