Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
423e9162
Commit
423e9162
authored
Aug 28, 2006
by
David Whitfield Morriss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests for Issue 2178
parent
08a87386
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
lib/python/Testing/ZopeTestCase/zopedoctest/layerextraction.txt
...thon/Testing/ZopeTestCase/zopedoctest/layerextraction.txt
+5
-0
lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py
.../Testing/ZopeTestCase/zopedoctest/test_layerextraction.py
+42
-0
No files found.
lib/python/Testing/ZopeTestCase/zopedoctest/layerextraction.txt
0 → 100644
View file @
423e9162
If the layer is extracted properly, we should see the following
variable
>>> getattr(self.app, 'LAYER_EXTRACTED', False)
True
lib/python/Testing/ZopeTestCase/zopedoctest/test_layerextraction.py
0 → 100644
View file @
423e9162
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
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment