Mercurial > cpython-lru_cache-weakref
annotate Lib/test/test_al.py @ 5817:48b94de85bf3 legacy-trunk
Extensive changes by AMK.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 1997 16:29:42 +0000 |
| parents | 383c6486346f |
| children | aedd2d0dcb31 |
| rev | line source |
|---|---|
|
4885
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
1 #! /usr/bin/env python |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
2 """Whimpy test script for the al module |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
3 Roger E. Masse |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
4 """ |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
5 import al |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
6 from test_support import verbose |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
7 |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
8 alattrs = ['__doc__', '__name__', 'getdefault', 'getminmax', 'getname', 'getparams', |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
9 'newconfig', 'openport', 'queryparams', 'setparams'] |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
10 |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
11 # This is a very inobstrusive test for the existance of the al module and all it's |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
12 # attributes. More comprehensive examples can be found in Demo/al |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
13 |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
14 def main(): |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
15 # touch all the attributes of al without doing anything |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
16 if verbose: |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
17 print 'Touching al module attributes...' |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
18 for attr in alattrs: |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
19 if verbose: |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
20 print 'touching: ', attr |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
21 getattr(al, attr) |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
22 |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
23 main() |
|
383c6486346f
This is a very inobstrusive test for the existance of the al module and all
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff
changeset
|
24 |
