Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Steinlechner
pykat
Commits
ab8912ef
Commit
ab8912ef
authored
Aug 17, 2016
by
Daniel Brown
Browse files
testing param owner reference
parent
2f76b1f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_scripts/structural/test_deepcopying_references.py
View file @
ab8912ef
...
...
@@ -25,6 +25,9 @@ assert(kat0.nodes.n0 != kat1.nodes.n0)
assert
(
kat0
.
o1
!=
kat1
.
o1
)
assert
(
kat0
.
o1
.
__class__
!=
kat1
.
o1
.
__class__
)
assert
(
kat0
.
m1
.
phi
.
owner
==
kat0
.
m1
)
assert
(
kat1
.
m1
.
phi
.
owner
==
kat1
.
m1
)
# use is to compare if two params are the same object as equals is override to compare the value
assert
(
kat0
.
o1
.
f1
is
not
kat1
.
o1
.
f1
)
assert
(
kat0
.
o1
.
f1
==
kat1
.
o1
.
f1
)
...
...
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