# query using get(), using only one value. this requires the select_table mapper
# has the same single-col primary key.
- assert sess.query(T1).get(ot1.id).id is ot1.id
+ assert sess.query(T1).get(ot1.id).id == ot1.id
ot1 = sess.query(T1).get(ot1.id)
ot1.data = 'hi'
# query using get(), using only one value. this requires the select_table mapper
# has the same single-col primary key.
- assert sess.query(T1).get(ot1.id).id is ot1.id
+ assert sess.query(T1).get(ot1.id).id == ot1.id
ot1 = sess.query(T1).get(ot1.id)
ot1.data = 'hi'
vis = Vis()
s2 = vis.traverse(struct, clone=True)
assert struct != s2
- assert struct is not s2
+ assert not struct.is_other(s2)
assert struct2 == s2
class Vis2(ClauseVisitor):
assert struct3 == s3
class ClauseTest(testbase.AssertMixin):
+ """test copy-in-place behavior of various ClauseElements."""
+
def setUpAll(self):
global t1, t2
t1 = table("table1",