annotate Lib/test/test_cd.py @ 27998:e27f58a50737 legacy-trunk

SF bug #690377: Dud footnote reference in distutils docs
author Raymond Hettinger <python@rcn.com>
date Fri, 21 Feb 2003 02:47:09 +0000
parents 226ba34bd998
children 53ab5163c1aa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4891
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
1 #! /usr/bin/env python
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
2 """Whimpy test script for the cd module
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
3 Roger E. Masse
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
4 """
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
5 import cd
24442
226ba34bd998 Complete the absolute import patch for the test suite. All relative
Barry Warsaw <barry@python.org>
parents: 15966
diff changeset
6 from test.test_support import verbose
4891
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
7
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
8 cdattrs = ['BLOCKSIZE', 'CDROM', 'DATASIZE', 'ERROR', 'NODISC', 'PAUSED', 'PLAYING', 'READY',
7747
aedd2d0dcb31 Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents: 4891
diff changeset
9 'STILL', '__doc__', '__name__', 'atime', 'audio', 'catalog', 'control', 'createparser', 'error',
aedd2d0dcb31 Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents: 4891
diff changeset
10 'ident', 'index', 'msftoframe', 'open', 'pnum', 'ptime']
4891
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
11
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
12
13050
a195962e389c typos fixed by Rob Hooft
Jeremy Hylton <jeremy@alum.mit.edu>
parents: 7747
diff changeset
13 # This is a very inobtrusive test for the existence of the cd module and all it's
4891
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
14 # attributes. More comprehensive examples can be found in Demo/cd and
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
15 # require that you have a CD and a CD ROM drive
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
16
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
17 def main():
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
18 # touch all the attributes of cd without doing anything
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
19 if verbose:
7747
aedd2d0dcb31 Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents: 4891
diff changeset
20 print 'Touching cd module attributes...'
4891
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
21 for attr in cdattrs:
7747
aedd2d0dcb31 Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents: 4891
diff changeset
22 if verbose:
aedd2d0dcb31 Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents: 4891
diff changeset
23 print 'touching: ', attr
aedd2d0dcb31 Mass check-in after untabifying all files that need it.
Guido van Rossum <guido@python.org>
parents: 4891
diff changeset
24 getattr(cd, attr)
4891
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
25
d399a4537f6d This is a very inobstrusive test for the existance of the SGI cd module
Roger E. Masse <rmasse@newcnri.cnri.reston.va.us>
parents:
diff changeset
26 main()