| 1 |
"""Whimpy test script for the cd module |
| 2 |
Roger E. Masse |
| 3 |
""" |
| 4 |
from test.test_support import verbose, import_module |
| 5 |
|
| 6 |
cd = import_module('cd') |
| 7 |
|
| 8 |
cdattrs = ['BLOCKSIZE', 'CDROM', 'DATASIZE', 'ERROR', 'NODISC', 'PAUSED', 'PLAYING', 'READY', |
| 9 |
'STILL', '__doc__', '__name__', 'atime', 'audio', 'catalog', 'control', 'createparser', 'error', |
| 10 |
'ident', 'index', 'msftoframe', 'open', 'pnum', 'ptime'] |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
def test_main(): |
| 18 |
|
| 19 |
if verbose: |
| 20 |
print 'Touching cd module attributes...' |
| 21 |
for attr in cdattrs: |
| 22 |
if verbose: |
| 23 |
print 'touching: ', attr |
| 24 |
getattr(cd, attr) |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
if __name__ == '__main__': |
| 29 |
test_main() |