blob: 54496c12196630534ac33cbe19a112be0231db97 [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
Barry Warsaw408b6d32002-07-30 23:27:12 +00006from test.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
Georg Brandl7eb4b7d2005-07-22 21:49:32 +000011# This is a very unobtrusive test for the existence of the al module and all its
Roger E. Masse1f983df1997-01-03 22:39:03 +000012# attributes. More comprehensive examples can be found in Demo/al
13
Brett Cannon7dbd9182008-03-03 04:19:29 +000014def test_main():
Roger E. Masse1f983df1997-01-03 22:39:03 +000015 # 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
Brett Cannon7dbd9182008-03-03 04:19:29 +000023
24if __name__ == '__main__':
25 test_main()