Esempio n. 1
0
def test_or_references():
    query_part = Or(Eq(Column("id"), Value(42)), Value(False))

    references = list(query_part.references())

    eq_(len(references), 1)

    eq_(references[0].name, "id")
Esempio n. 2
0
def test_or():
    query_part = Or(Value(True), Value(False))

    sql = query_part.render()

    eq_(sql, "true OR false")