Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Nicolas Wavrant
ZODB
Commits
066c77ac
Commit
066c77ac
authored
Feb 27, 2006
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test that blob_dir value is as expected during parse time.
parent
4988f141
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
src/ZODB/tests/testConfig.py
src/ZODB/tests/testConfig.py
+20
-0
No files found.
src/ZODB/tests/testConfig.py
View file @
066c77ac
...
...
@@ -102,6 +102,9 @@ class ZEOConfigTest(ConfigTestBase):
# an elaborate comment explaining this instead. Go ahead,
# grep for 9.
from
ZEO.ClientStorage
import
ClientDisconnected
import
ZConfig
from
ZODB.config
import
getDbSchema
from
StringIO
import
StringIO
cfg
=
"""
<zodb>
<zeoclient>
...
...
@@ -110,6 +113,23 @@ class ZEOConfigTest(ConfigTestBase):
</zeoclient>
</zodb>
"""
config
,
handle
=
ZConfig
.
loadConfigFile
(
getDbSchema
(),
StringIO
(
cfg
))
self
.
assertEqual
(
config
.
database
.
config
.
storage
.
config
.
blob_dir
,
None
)
self
.
assertRaises
(
ClientDisconnected
,
self
.
_test
,
cfg
)
cfg
=
"""
<zodb>
<zeoclient>
blob-dir /tmp
server localhost:56897
wait false
</zeoclient>
</zodb>
"""
config
,
handle
=
ZConfig
.
loadConfigFile
(
getDbSchema
(),
StringIO
(
cfg
))
self
.
assertEqual
(
config
.
database
.
config
.
storage
.
config
.
blob_dir
,
'/tmp'
)
self
.
assertRaises
(
ClientDisconnected
,
self
.
_test
,
cfg
)
...
...
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