[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Rename the python bindings test case classes appropriately

From: Madan U Sreenivasan <madan_at_collab.net>
Date: 2006-06-23 16:14:10 CEST

Hi,

    Two of the python bindings test cases use irrelevent class names.
Renamed appropriately.

[[[
Rename the python bindings test case classes appropriately.

* subversion/bindings/swig/python/tests/wc.py
   (SubversionRepositoryTestCase): Renamed to SubversionWorkingCopyTestCase.
   (suite): Pass SubversionWorkingCopyTestCase to unittest.makeSuite().

* subversion/bindings/swig/python/tests/ra.py
   (SubversionRepositoryTestCase): Renamed to
   SubversionRepositoryAccessTestCase.
   (suite): Pass SubversionRepositoryAccessTestCase to unittest.makeSuite().
]]]

Regards,
Madan.

Index: subversion/bindings/swig/python/tests/wc.py
===================================================================
--- subversion/bindings/swig/python/tests/wc.py (revision 20225)
+++ subversion/bindings/swig/python/tests/wc.py (working copy)
@@ -9,7 +9,7 @@
   REPOS_PATH
 from urllib import pathname2url
 
-class SubversionRepositoryTestCase(unittest.TestCase):
+class SubversionWorkingCopyTestCase(unittest.TestCase):
   """Test cases for the Subversion working copy layer"""
 
   def setUp(self):
@@ -111,7 +111,7 @@
       shutil.rmtree(self.path)
 
 def suite():
- return unittest.makeSuite(SubversionRepositoryTestCase, 'test',
+ return unittest.makeSuite(SubversionWorkingCopyTestCase, 'test',
                               suiteClass=SubversionRepositoryTestSetup)
 
 if __name__ == '__main__':
Index: subversion/bindings/swig/python/tests/ra.py
===================================================================
--- subversion/bindings/swig/python/tests/ra.py (revision 20225)
+++ subversion/bindings/swig/python/tests/ra.py (working copy)
@@ -6,7 +6,7 @@
   REPOS_PATH
 from urllib import pathname2url
 
-class SubversionRepositoryTestCase(unittest.TestCase):
+class SubversionRepositoryAccessTestCase(unittest.TestCase):
   """Test cases for the Subversion repository layer"""
 
   def setUp(self):
@@ -110,7 +110,7 @@
     ra.reporter2_invoke_finish_report(reporter, reporter_baton)
 
 def suite():
- return unittest.makeSuite(SubversionRepositoryTestCase, 'test',
+ return unittest.makeSuite(SubversionRepositoryAccessTestCase, 'test',
                               suiteClass=SubversionRepositoryTestSetup)
 
 if __name__ == '__main__':

Rename the python bindings test case classes appropriately.

* subversion/bindings/swig/python/tests/wc.py
  (SubversionRepositoryTestCase): Renamed to SubversionWorkingCopyTestCase.
  (suite): Pass SubversionWorkingCopyTestCase to unittest.makeSuite().

* subversion/bindings/swig/python/tests/ra.py
  (SubversionRepositoryTestCase): Renamed to
  SubversionRepositoryAccessTestCase.
  (suite): Pass SubversionRepositoryAccessTestCase to unittest.makeSuite().

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 23 15:43:58 2006

This is an archived mail posted to the Subversion Dev mailing list.