MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_cloned_difference

Method test_cloned_difference

test/sql/test_selectable.py:618–634  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

616 eq_(base._cloned_intersection([s1c1, s3c1], [s2c1, s1c2]), {s1c1})
617
618 def test_cloned_difference(self):
619 t1 = table("t1", column("x"))
620 t2 = table("t2", column("x"))
621
622 s1 = t1.select()
623 s2 = t2.select()
624 s3 = t1.select()
625
626 s1c1 = s1._clone()
627 s1c2 = s1._clone()
628 s2c1 = s2._clone()
629 s3c1 = s3._clone()
630
631 eq_(
632 base._cloned_difference([s1c1, s2c1, s3c1], [s2c1, s1c2]),
633 {s3c1},
634 )
635
636 def test_distance_on_aliases(self):
637 a1 = table1.alias("a1")

Callers

nothing calls this directly

Calls 5

tableFunction · 0.90
columnFunction · 0.90
eq_Function · 0.90
selectMethod · 0.45
_cloneMethod · 0.45

Tested by

no test coverage detected