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

Method test_is_distinct_from

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

Source from the content-addressed store, hash-verified

93 self.assert_compile(sql.true(), "1")
94
95 def test_is_distinct_from(self):
96 self.assert_compile(
97 sql.column("x").is_distinct_from(None), "x IS NOT NULL"
98 )
99
100 self.assert_compile(
101 sql.column("x").is_not_distinct_from(False), "x IS 0"
102 )
103
104 def test_localtime(self):
105 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