def test_map_trigger_conditional(self):
        "Map trigger with a WHEN qualification"
        if 90000 < self.db.version:
            self.skipTest('Only available on PG 9.0')
        stmts = [CREATE_TABLE_STMT, CREATE_FUNC_STMT,
                 "CREATE TRIGGER tr1 AFTER UPDATE ON t1 FOR EACH ROW "
                 "WHEN (OLD.c2 IS DISTINCT FROM NEW.c2) "
                 "EXECUTE PROCEDURE f1()"]
        dbmap = self.to_map(stmts)
        assert dbmap['schema public']['table t1']['triggers'] == {
            'tr1': {'timing': 'after', 'events': ['update'],
                    'level': 'row', 'procedure': 'f1()',
                    'condition': '(old.c2 IS DISTINCT FROM new.c2)'}}
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_trigger.py/TriggerToMapTestCase.test_map_trigger_conditional/swapped operands of `<`