MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_in

Method test_in

test/base/test_utils.py:832–848  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

830 cc.contains_column("foo")
831
832 def test_in(self):
833 col1 = sql.column("col1")
834 cc = self._column_collection(
835 columns=[
836 ("col1", col1),
837 ("col2", sql.column("col2")),
838 ("col3", sql.column("col3")),
839 ]
840 )
841 assert "col1" in cc
842 assert "col2" in cc
843
844 assert_raises_message(
845 exc.ArgumentError,
846 "__contains__ requires a string argument",
847 lambda: col1 in cc,
848 )
849
850 def test_compare(self):
851 c1 = sql.column("col1")

Callers

nothing calls this directly

Calls 3

assert_raises_messageFunction · 0.90
columnMethod · 0.45
_column_collectionMethod · 0.45

Tested by

no test coverage detected