[Python-checkins] CVS: python/nondist/sandbox/sets set.py,NONE,1.1 test_set.py,NONE,1.1

Fred L. Drake, Jr. fdrake@acm.org
Tue, 22 May 2001 18:19:46 -0400 (EDT)


Greg Wilson writes:
 > --- NEW FILE: test_set.py ---
 > #!/usr/bin/env python
...
 > class TestBasicOps(unittest.TestCase):
 > 
 >     def checkRepr(self):
 >         if self.repr is not None:

Greg,
  I know there's a dearth of documentation on writing regression tests
for Python, but for the the unittest-based tests we're moving to,
we're sticking with "test_" for the test method prefix; this avoids
needing to pass the extra parameter when building the test suite since
the default for PyUnit is "test".  I'd like to also stick with
lower-case names separated by underscores as well -- camel case is
said to be difficult for non-native English speakers.
  I have assigned a bug to myself to deal with the lack of
documentation.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations