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")
def test_or(): query_part = Or(Value(True), Value(False)) sql = query_part.render() eq_(sql, "true OR false")