blob: d11c7e51bae30854b650b125ac213691128092ce [file] [log] [blame]
Roger E. Masse1f983df1997-01-03 22:39:03 +00001#! /usr/bin/env python
2"""Whimpy test script for the al module
3 Roger E. Masse
4"""
5import al
Fredrik Lundhf7850422001-01-17 21:51:36 +00006from test_support import verbose
Roger E. Masse1f983df1997-01-03 22:39:03 +00007
8alattrs = ['__doc__', '__name__', 'getdefault', 'getminmax', 'getname', 'getparams',
Guido van Rossum41360a41998-03-26 19:42:58 +00009 'newconfig', 'openport', 'queryparams', 'setparams']
Roger E. Masse1f983df1997-01-03 22:39:03 +000010
Jeremy Hyltona05e2932000-06-28 14:48:01 +000011# This is a very unobtrusive test for the existence of the al module and all it's
Roger E. Masse1f983df1997-01-03 22:39:03 +000012# attributes. More comprehensive examples can be found in Demo/al
13
14def main():
15 # touch all the attributes of al without doing anything
16 if verbose:
Guido van Rossum41360a41998-03-26 19:42:58 +000017 print 'Touching al module attributes...'
Roger E. Masse1f983df1997-01-03 22:39:03 +000018 for attr in alattrs:
Guido van Rossum41360a41998-03-26 19:42:58 +000019 if verbose:
20 print 'touching: ', attr
21 getattr(al, attr)
Roger E. Masse1f983df1997-01-03 22:39:03 +000022
23main()