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

Method test_negate_operators_3

test/sql/test_operators.py:2901–2910  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2899 )
2900
2901 def test_negate_operators_3(self):
2902 self.assert_compile(
2903 self.table1.select().where(
2904 (self.table1.c.myid != 12)
2905 & ~(self.table1.c.name.between("jack", "john"))
2906 ),
2907 "SELECT mytable.myid, mytable.name FROM "
2908 "mytable WHERE mytable.myid != :myid_1 AND "
2909 "mytable.name NOT BETWEEN :name_1 AND :name_2",
2910 )
2911
2912 def test_negate_operators_4(self):
2913 self.assert_compile(

Callers

nothing calls this directly

Calls 4

assert_compileMethod · 0.80
whereMethod · 0.45
selectMethod · 0.45
betweenMethod · 0.45

Tested by

no test coverage detected