0001 #! /usr/bin/env python 0002 """Whimpy test script for the al module 0003 Roger E. Masse 0004 """ 0005 import al 0006 from test.test_support import verbose 0007 0008 alattrs = ['__doc__', '__name__', 'getdefault', 'getminmax', 'getname', 'getparams', 0009 'newconfig', 'openport', 'queryparams', 'setparams'] 0010 0011 # This is a very unobtrusive test for the existence of the al module and all it's 0012 # attributes. More comprehensive examples can be found in Demo/al 0013 0014 def main(): 0015 # touch all the attributes of al without doing anything 0016 if verbose: 0017 print 'Touching al module attributes...' 0018 for attr in alattrs: 0019 if verbose: 0020 print 'touching: ', attr 0021 getattr(al, attr) 0022 0023 main() 0024
Generated by PyXR 0.9.4