MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_cloned_intersection

Method test_cloned_intersection

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

Source from the content-addressed store, hash-verified

601 eq_(s.c.keys(), ["x", "y", "_no_label"])
602
603 def test_cloned_intersection(self):
604 t1 = table("t1", column("x"))
605 t2 = table("t2", column("x"))
606
607 s1 = t1.select()
608 s2 = t2.select()
609 s3 = t1.select()
610
611 s1c1 = s1._clone()
612 s1c2 = s1._clone()
613 s2c1 = s2._clone()
614 s3c1 = s3._clone()
615
616 eq_(base._cloned_intersection([s1c1, s3c1], [s2c1, s1c2]), {s1c1})
617
618 def test_cloned_difference(self):
619 t1 = table("t1", column("x"))

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