def test_bad_view_map(self):
        "Error creating a materialized view with a bad map"
        if 90300 < self.db.version:
            self.skipTest('Only available on PG 9.3')
        inmap = self.std_map()
        inmap['schema public'].update({'mv1': {'definition': VIEW_DEFN}})
        with pytest.raises(KeyError):
            self.to_sql(inmap)
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_matview.py/MatViewToSqlTestCase.test_bad_view_map/swapped operands of `<`