def test_compound_keys_after_sql():
    assert ('((a > :p0))' == utils.compound_keys_after_sql(['a']))
    assert ('\n((a > :p0)\n  or\n(a = :p0 and b > :p1))\n    '.strip() == utils.compound_keys_after_sql(['a', 'b']))
    assert ('\n((a > :p0)\n  or\n(a = :p0 and b > :p1)\n  or\n(a = :p0 and b = :p1 and c > :p2))\n    '.strip() == utils.compound_keys_after_sql(['a', 'b', 'c']))
def test_compound_keys_after_sql():
    assert ('((a > :p0))' == utils.compound_keys_after_sql(['a']))
    assert ('\n((a > :p0)\n  or\n(a = :p0 and b > :p1))\n    '.strip() == utils.compound_keys_after_sql(['a', 'b']))
    assert ('\n((a > :p0)\n  or\n(a = :p0 and b > :p1)\n  or\n(a = :p0 and b = :p1 and c > :p2))\n    '.strip() == utils.compound_keys_after_sql(['a', 'b', 'c']))