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
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
ZEO
Commits
5e1c152f
Commit
5e1c152f
authored
Apr 22, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify tpc_vote() and reflow some long lines.
Add test case for long metadata.
parent
72cf125d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
src/ZODB/tests/testFileStorage.py
src/ZODB/tests/testFileStorage.py
+16
-0
No files found.
src/ZODB/tests/testFileStorage.py
View file @
5e1c152f
...
...
@@ -4,6 +4,7 @@ import ZODB.FileStorage
import
sys
,
os
,
unittest
import
errno
from
ZODB.Transaction
import
Transaction
from
ZODB
import
POSException
from
ZODB.tests
import
StorageTestBase
,
BasicStorage
,
\
TransactionalUndoStorage
,
VersionStorage
,
\
...
...
@@ -48,6 +49,21 @@ class FileStorageTests(
if
os
.
path
.
exists
(
path
):
os
.
remove
(
path
)
def
checkLongMetadata
(
self
):
s
=
"X"
*
75000
try
:
self
.
_dostore
(
user
=
s
)
except
POSException
.
StorageError
:
pass
else
:
self
.
fail
(
"expect long user field to raise error"
)
try
:
self
.
_dostore
(
description
=
s
)
except
POSException
.
StorageError
:
pass
else
:
self
.
fail
(
"expect long user field to raise error"
)
class
FileStorageRecoveryTest
(
StorageTestBase
.
StorageTestBase
,
IteratorStorage
.
IteratorDeepCompare
,
...
...
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