[Checkins] SVN: hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/tests.py Refactor test setup

Jan-Jaap Driessen jdriessen at thehealthagency.com
Tue Nov 16 03:45:07 EST 2010


Log message for revision 118425:
  Refactor test setup

Changed:
  U   hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/tests.py

-=-
Modified: hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/tests.py
===================================================================
--- hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/tests.py	2010-11-16 07:50:49 UTC (rev 118424)
+++ hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/tests.py	2010-11-16 08:45:06 UTC (rev 118425)
@@ -1,14 +1,7 @@
 import unittest, doctest
 
 def test_suite():
-    globs = {}
-    optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
-
-    suite = unittest.TestSuite()
-    
-    suite.addTest(doctest.DocFileSuite(
+    readme = doctest.DocFileSuite(
         'README.txt',
-        globs=globs,
-        optionflags=optionflags))
-    return suite
-
+        optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS)
+    return unittest.TestSuite([readme])



More information about the checkins mailing list