1997-01-03 18:39:03 -04:00
|
|
|
#! /usr/bin/env python
|
|
|
|
"""Whimpy test script for the al module
|
|
|
|
Roger E. Masse
|
|
|
|
"""
|
|
|
|
import al
|
2002-07-30 20:27:12 -03:00
|
|
|
from test.test_support import verbose
|
1997-01-03 18:39:03 -04:00
|
|
|
|
|
|
|
alattrs = ['__doc__', '__name__', 'getdefault', 'getminmax', 'getname', 'getparams',
|
1998-03-26 15:42:58 -04:00
|
|
|
'newconfig', 'openport', 'queryparams', 'setparams']
|
1997-01-03 18:39:03 -04:00
|
|
|
|
2005-07-22 18:49:32 -03:00
|
|
|
# This is a very unobtrusive test for the existence of the al module and all its
|
1997-01-03 18:39:03 -04:00
|
|
|
# attributes. More comprehensive examples can be found in Demo/al
|
|
|
|
|
|
|
|
def main():
|
|
|
|
# touch all the attributes of al without doing anything
|
|
|
|
if verbose:
|
2007-02-09 01:37:30 -04:00
|
|
|
print('Touching al module attributes...')
|
1997-01-03 18:39:03 -04:00
|
|
|
for attr in alattrs:
|
1998-03-26 15:42:58 -04:00
|
|
|
if verbose:
|
2007-02-09 01:37:30 -04:00
|
|
|
print('touching: ', attr)
|
1998-03-26 15:42:58 -04:00
|
|
|
getattr(al, attr)
|
1997-01-03 18:39:03 -04:00
|
|
|
|
|
|
|
main()
|