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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
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
Show 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
...
@@ -19,7 +19,11 @@ import unittest
class
PackerTests
(
StorageTestBase
):
class
PackerTests
(
StorageTestBase
):
def
setUp
(
self
):
self
.
started
=
0
def
start
(
self
):
def
start
(
self
):
self
.
started
=
1
self
.
path
=
tempfile
.
mktemp
(
suffix
=
".fs"
)
self
.
path
=
tempfile
.
mktemp
(
suffix
=
".fs"
)
self
.
_storage
=
FileStorage
(
self
.
path
)
self
.
_storage
=
FileStorage
(
self
.
path
)
self
.
db
=
ZODB
.
DB
(
self
.
_storage
)
self
.
db
=
ZODB
.
DB
(
self
.
_storage
)
...
@@ -31,6 +35,8 @@ class PackerTests(StorageTestBase):
...
@@ -31,6 +35,8 @@ class PackerTests(StorageTestBase):
self
.
_dostore
()
self
.
_dostore
()
def
tearDown
(
self
):
def
tearDown
(
self
):
if
not
self
.
started
:
return
self
.
db
.
close
()
self
.
db
.
close
()
self
.
_storage
.
close
()
self
.
_storage
.
close
()
self
.
exit
.
close
()
self
.
exit
.
close
()
...
@@ -77,6 +83,10 @@ class PackerTests(StorageTestBase):
...
@@ -77,6 +83,10 @@ class PackerTests(StorageTestBase):
assert
status
==
0
assert
status
==
0
assert
os
.
path
.
exists
(
self
.
path
+
".old"
)
assert
os
.
path
.
exists
(
self
.
path
+
".old"
)
def
testNoServer
(
self
):
status
=
os
.
system
(
"zeopack.py -p 19"
)
assert
status
!=
0
class
UpTest
(
unittest
.
TestCase
):
class
UpTest
(
unittest
.
TestCase
):
def
testUp
(
self
):
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