blob: a00abfc20c5eeb121a5227360b90378909fce649 [file] [log] [blame]
Roger E. Masse1f983df1997-01-03 22:39:03 +00001"""Whimpy test script for the al module
2 Roger E. Masse
3"""
Brett Cannon34721d52008-05-14 01:08:21 +00004from test.test_support import verbose, import_module
5al = import_module('al', deprecated=True)
Roger E. Masse1f983df1997-01-03 22:39:03 +00006
7alattrs = ['__doc__', '__name__', 'getdefault', 'getminmax', 'getname', 'getparams',
Guido van Rossum41360a41998-03-26 19:42:58 +00008 'newconfig', 'openport', 'queryparams', 'setparams']
Roger E. Masse1f983df1997-01-03 22:39:03 +00009
Georg Brandl7eb4b7d2005-07-22 21:49:32 +000010# This is a very unobtrusive test for the existence of the al module and all its
Roger E. Masse1f983df1997-01-03 22:39:03 +000011# attributes. More comprehensive examples can be found in Demo/al
12
Brett Cannon7dbd9182008-03-03 04:19:29 +000013def test_main():
Roger E. Masse1f983df1997-01-03 22:39:03 +000014 # touch all the attributes of al without doing anything
15 if verbose:
Guido van Rossum41360a41998-03-26 19:42:58 +000016 print 'Touching al module attributes...'
Roger E. Masse1f983df1997-01-03 22:39:03 +000017 for attr in alattrs:
Guido van Rossum41360a41998-03-26 19:42:58 +000018 if verbose:
19 print 'touching: ', attr
20 getattr(al, attr)
Roger E. Masse1f983df1997-01-03 22:39:03 +000021
Brett Cannon7dbd9182008-03-03 04:19:29 +000022
23if __name__ == '__main__':
24 test_main()