| 1 |
"""Whimpy test script for the al module |
| 2 |
Roger E. Masse |
| 3 |
""" |
| 4 |
from test.test_support import verbose, import_module |
| 5 |
al = import_module('al', deprecated=True) |
| 6 |
|
| 7 |
alattrs = ['__doc__', '__name__', 'getdefault', 'getminmax', 'getname', 'getparams', |
| 8 |
'newconfig', 'openport', 'queryparams', 'setparams'] |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
def test_main(): |
| 14 |
|
| 15 |
if verbose: |
| 16 |
print 'Touching al module attributes...' |
| 17 |
for attr in alattrs: |
| 18 |
if verbose: |
| 19 |
print 'touching: ', attr |
| 20 |
getattr(al, attr) |
| 21 |
|
| 22 |
|
| 23 |
if __name__ == '__main__': |
| 24 |
test_main() |