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
a926126c
Commit
a926126c
authored
Feb 15, 2005
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the tests a bit more thorough.
parent
2b97a4ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
lib/python/ZClasses/ZClass.txt
lib/python/ZClasses/ZClass.txt
+10
-2
lib/python/ZClasses/tests.py
lib/python/ZClasses/tests.py
+0
-1
No files found.
lib/python/ZClasses/ZClass.txt
View file @
a926126c
...
...
@@ -83,9 +83,17 @@ We can access the class in another connection:
... app.c2.x = '*'
... print app.c2.x, app.c2.y, app.c2.eek(), '!'
... print app.c.x, app.c.y, app.c.eek(), '!'
... transaction.commit()
... connection.close()
...
run(read_class)
hee
42 ****************************************** !
>>>
run(read_class)
*
42 ****************************************** !
hi 3 hi hi hi !
Of course, we should be able to see the new object created in the
other connection:
>>> conn.sync()
>>> app.c2.eek()
'******************************************'
lib/python/ZClasses/tests.py
View file @
a926126c
...
...
@@ -44,7 +44,6 @@ def test_suite():
return
unittest
.
TestSuite
((
# To do:
# - Beef up basic test
# - Test working with old pickles
# - Test proper handling of __of__
# - Test export/import
...
...
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