• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

contrib/opal/ZSI/test/test_callhome.py

00001 #!/usr/bin/env python
00002 import os,unittest
00003 from ZSI import version
00004 from ZSI.wstools.logging import gridLog
00005 
00006 os.environ['GRIDLOG_ON'] = '1'
00007 os.environ['GRIDLOG_DEST'] = "gridlog-udp://netlogger.lbl.gov:15100"
00008 
00009 
00010 class TestCase(unittest.TestCase):
00011     def ping(self):
00012         gridLog(event="zsi.test.test_callhome.ping", zsi="v%d.%d.%d" % version.Version, prog="test_callhome.py")
00013 
00014 def makeTestSuite():
00015     suite = unittest.TestSuite()
00016     suite.addTest(unittest.makeSuite(TestCase, "ping"))
00017     return suite
00018 
00019 def main():
00020     unittest.main(defaultTest="makeTestSuite")
00021 
00022 if __name__ == '__main__': 
00023     main()
00024 

Generated on Wed Oct 20 2010 11:12:16 for APBS by  doxygen 1.7.2