1997-01-03 23:39:03 +01:00
|
|
|
#! /usr/bin/env python
|
|
|
|
"""Whimpy test script for the al module
|
|
|
|
Roger E. Masse
|
|
|
|
"""
|
|
|
|
import al
|
|
|
|
from test_support import verbose
|
|
|
|
|
|
|
|
alattrs = ['__doc__', '__name__', 'getdefault', 'getminmax', 'getname', 'getparams',
|
1998-03-26 20:42:58 +01:00
|
|
|
'newconfig', 'openport', 'queryparams', 'setparams']
|
1997-01-03 23:39:03 +01:00
|
|
|
|
|
|
|
# This is a very inobstrusive test for the existance of the al module and all it's
|
|
|
|
# attributes. More comprehensive examples can be found in Demo/al
|
|
|
|
|
|
|
|
def main():
|
|
|
|
# touch all the attributes of al without doing anything
|
|
|
|
if verbose:
|
1998-03-26 20:42:58 +01:00
|
|
|
print 'Touching al module attributes...'
|
1997-01-03 23:39:03 +01:00
|
|
|
for attr in alattrs:
|
1998-03-26 20:42:58 +01:00
|
|
|
if verbose:
|
|
|
|
print 'touching: ', attr
|
|
|
|
getattr(al, attr)
|
1997-01-03 23:39:03 +01:00
|
|
|
|
|
|
|
main()
|
|
|
|
|