[Zope-Checkins] SVN: Zope/branches/2.10/lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py Grumble, file removal didn't merge right.

Stefan H. Holek stefan at epy.co.at
Fri Sep 8 10:43:46 EDT 2006


Log message for revision 70064:
  Grumble, file removal didn't merge right.
  

Changed:
  D   Zope/branches/2.10/lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py

-=-
Deleted: Zope/branches/2.10/lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py
===================================================================
--- Zope/branches/2.10/lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py	2006-09-08 14:40:48 UTC (rev 70063)
+++ Zope/branches/2.10/lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py	2006-09-08 14:43:45 UTC (rev 70064)
@@ -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))



More information about the Zope-Checkins mailing list