[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/ Add copyright headers and bump version.

Stefan H. Holek stefan at epy.co.at
Fri Sep 8 10:36:57 EDT 2006


Log message for revision 70061:
  Add copyright headers and bump version.
  

Changed:
  U   Zope/branches/2.9/lib/python/Testing/ZopeTestCase/doc/VERSION.txt
  UU  Zope/branches/2.9/lib/python/Testing/ZopeTestCase/tests.py
  U   Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/layerextraction.txt
  A   Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/testLayerExtraction.py
  D   Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py
  UU  Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/tests.py

-=-
Modified: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/doc/VERSION.txt
===================================================================
--- Zope/branches/2.9/lib/python/Testing/ZopeTestCase/doc/VERSION.txt	2006-09-08 14:31:34 UTC (rev 70060)
+++ Zope/branches/2.9/lib/python/Testing/ZopeTestCase/doc/VERSION.txt	2006-09-08 14:36:56 UTC (rev 70061)
@@ -1 +1 @@
-ZopeTestCase 0.9.8
+ZopeTestCase 0.9.9

Modified: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/tests.py
===================================================================
--- Zope/branches/2.9/lib/python/Testing/ZopeTestCase/tests.py	2006-09-08 14:31:34 UTC (rev 70060)
+++ Zope/branches/2.9/lib/python/Testing/ZopeTestCase/tests.py	2006-09-08 14:36:56 UTC (rev 70061)
@@ -1,5 +1,20 @@
-"""Test runner that works with zope.testing.testrunner"""
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors. All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Test runner that works with zope.testing.testrunner
 
+$Id"
+"""
+
 import unittest
 import os
 import Testing.ZopeTestCase


Property changes on: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/tests.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Modified: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/layerextraction.txt
===================================================================
--- Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/layerextraction.txt	2006-09-08 14:31:34 UTC (rev 70060)
+++ Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/layerextraction.txt	2006-09-08 14:36:56 UTC (rev 70061)
@@ -3,3 +3,4 @@
 
  >>> getattr(self.app, 'LAYER_EXTRACTED', False)
  True
+

Copied: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/testLayerExtraction.py (from rev 69937, Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py)
===================================================================
--- Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py	2006-09-02 16:04:48 UTC (rev 69937)
+++ Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/testLayerExtraction.py	2006-09-08 14:36:56 UTC (rev 70061)
@@ -0,0 +1,58 @@
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors. All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Test layer extraction feature
+
+$Id$
+"""
+
+from unittest import TestSuite
+from Testing import ZopeTestCase
+from Testing.ZopeTestCase import ZopeDocFileSuite
+from Testing.ZopeTestCase import ZopeDocTestSuite
+from Testing.ZopeTestCase import transaction
+
+
+class TestLayer:
+    """
+    If the layer is extracted properly, we should see the following
+    variable
+
+    >>> getattr(self.app, 'LAYER_EXTRACTED', False)
+    True
+    """
+
+    @classmethod
+    def setUp(cls):
+        app = ZopeTestCase.app()
+        app.LAYER_EXTRACTED = True
+        transaction.commit()
+        ZopeTestCase.close(app)
+
+    @classmethod
+    def tearDown(cls):
+        app = ZopeTestCase.app()
+        delattr(app, 'LAYER_EXTRACTED')
+        transaction.commit()
+        ZopeTestCase.close(app)
+
+
+class TestCase(ZopeTestCase.ZopeTestCase):
+    layer = TestLayer
+
+
+def test_suite():
+    return TestSuite((
+        ZopeDocTestSuite(test_class=TestCase),
+        ZopeDocFileSuite('layerextraction.txt', test_class=TestCase),
+    ))
+


Property changes on: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/testLayerExtraction.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Deleted: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py
===================================================================
--- Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py	2006-09-08 14:31:34 UTC (rev 70060)
+++ Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py	2006-09-08 14:36:56 UTC (rev 70061)
@@ -1,42 +0,0 @@
-from Testing.ZopeTestCase import ZopeDocFileSuite as FileSuite
-from Testing.ZopeTestCase import ZopeDocTestSuite as TestSuite
-from Testing.ZopeTestCase.ZopeTestCase import ZopeTestCase
-from Testing import ZopeTestCase
-
-import transaction as txn
-
-class TestLayer:
-    """
-    If the layer is extracted properly, we should see the following
-    variable
-
-    >>> getattr(self.app, 'LAYER_EXTRACTED', False)
-    True
-    """
-    @classmethod
-    def setUp(cls):
-        app = ZopeTestCase.app()
-        app.LAYER_EXTRACTED = True
-        txn.commit()
-        ZopeTestCase.close(app)
-
-    @classmethod
-    def tearDown(cls):
-        app = ZopeTestCase.app()
-        del app.LAYER_EXTRACTED
-        txn.commit()
-        ZopeTestCase.close(app)
-
-class TestCase(ZopeTestCase.ZopeTestCase):
-    layer = TestLayer
-
-def test_suite():
-    import unittest
-    fs = FileSuite('layerextraction.txt',
-                   test_class=TestCase,
-                   package='Testing.ZopeTestCase.zopedoctest'
-                   )
-    ts = TestSuite('Testing.ZopeTestCase.zopedoctest.test_layerextraction',
-                   test_class=TestCase,
-                   )
-    return unittest.TestSuite((fs, ts))

Modified: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/tests.py
===================================================================
--- Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/tests.py	2006-09-08 14:31:34 UTC (rev 70060)
+++ Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/tests.py	2006-09-08 14:36:56 UTC (rev 70061)
@@ -1,5 +1,20 @@
-"""Test runner that works with zope.testing.testrunner"""
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors. All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Test runner that works with zope.testing.testrunner
 
+$Id$
+"""
+
 import unittest
 import os
 import Testing.ZopeTestCase.zopedoctest


Property changes on: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/tests.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native



More information about the Zope-Checkins mailing list