summaryrefslogtreecommitdiff
path: root/src/python/stdlib/test/test_al.py
diff options
context:
space:
mode:
authorLieuwe <lieuwemo@gmail.com>2011-03-18 16:04:51 (GMT)
committer Lieuwe <lieuwemo@gmail.com>2011-03-18 16:04:51 (GMT)
commit9c39875ef09d439ef51716dba091188f72977f5e (patch)
treefb0fd27a1bcd3e54a1913852c23aa137ee5eb30b /src/python/stdlib/test/test_al.py
parentbc8af4e2101ac93bdc51b59ee64fa43ecb2442f3 (diff)
downloadpowder-9c39875ef09d439ef51716dba091188f72977f5e.zip
powder-9c39875ef09d439ef51716dba091188f72977f5e.tar.gz
...
Diffstat (limited to 'src/python/stdlib/test/test_al.py')
-rwxr-xr-xsrc/python/stdlib/test/test_al.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/python/stdlib/test/test_al.py b/src/python/stdlib/test/test_al.py
new file mode 100755
index 0000000..688576d
--- /dev/null
+++ b/src/python/stdlib/test/test_al.py
@@ -0,0 +1,25 @@
+#! /usr/bin/env python
+"""Whimpy test script for the al module
+ Roger E. Masse
+"""
+from test.test_support import verbose, import_module
+al = import_module('al', deprecated=True)
+
+alattrs = ['__doc__', '__name__', 'getdefault', 'getminmax', 'getname', 'getparams',
+ 'newconfig', 'openport', 'queryparams', 'setparams']
+
+# This is a very unobtrusive test for the existence of the al module and all its
+# attributes. More comprehensive examples can be found in Demo/al
+
+def test_main():
+ # touch all the attributes of al without doing anything
+ if verbose:
+ print 'Touching al module attributes...'
+ for attr in alattrs:
+ if verbose:
+ print 'touching: ', attr
+ getattr(al, attr)
+
+
+if __name__ == '__main__':
+ test_main()