MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_is_distinct_from

Method test_is_distinct_from

test/dialect/sqlite/test_compiler.py:97–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95 self.assert_compile(sql.true(), "1")
96
97 def test_is_distinct_from(self):
98 self.assert_compile(
99 sql.column("x").is_distinct_from(None), "x IS NOT NULL"
100 )
101
102 self.assert_compile(
103 sql.column("x").is_not_distinct_from(False), "x IS 0"
104 )
105
106 def test_localtime(self):
107 self.assert_compile(

Callers

nothing calls this directly

Calls 4

assert_compileMethod · 0.80
is_distinct_fromMethod · 0.45
columnMethod · 0.45
is_not_distinct_fromMethod · 0.45

Tested by

no test coverage detected