Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
171981ae
Commit
171981ae
authored
Jan 30, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test of zeopack to non-existent server.
parent
032b6e96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/scripts/tests/testzeopack.py
src/scripts/tests/testzeopack.py
+10
-0
No files found.
src/scripts/tests/testzeopack.py
View file @
171981ae
...
...
@@ -19,7 +19,11 @@ import unittest
class
PackerTests
(
StorageTestBase
):
def
setUp
(
self
):
self
.
started
=
0
def
start
(
self
):
self
.
started
=
1
self
.
path
=
tempfile
.
mktemp
(
suffix
=
".fs"
)
self
.
_storage
=
FileStorage
(
self
.
path
)
self
.
db
=
ZODB
.
DB
(
self
.
_storage
)
...
...
@@ -31,6 +35,8 @@ class PackerTests(StorageTestBase):
self
.
_dostore
()
def
tearDown
(
self
):
if
not
self
.
started
:
return
self
.
db
.
close
()
self
.
_storage
.
close
()
self
.
exit
.
close
()
...
...
@@ -77,6 +83,10 @@ class PackerTests(StorageTestBase):
assert
status
==
0
assert
os
.
path
.
exists
(
self
.
path
+
".old"
)
def
testNoServer
(
self
):
status
=
os
.
system
(
"zeopack.py -p 19"
)
assert
status
!=
0
class
UpTest
(
unittest
.
TestCase
):
def
testUp
(
self
):
...
...
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