def test_column_change_grants(self):
        inmap = self.std_map()
        inmap['schema public'].update(
            {'table t1': {'columns': [{'c1': {
                'type': 'integer', 'privileges': [{
                'user1': ['insert']}, {'user2': ['insert', 'update']}]}},
            {'c2': {'type': 'text', 'privileges': [{'user1': ['insert']}]}}],
                'owner': self.db.user, 'privileges': [{self.db.user: ['all']},
                {'PUBLIC': ['select']}]}})
        stmts = [CREATE_TABLE, GRANT_SELECT % 'PUBLIC',
                 "GRANT INSERT (c1, c2) ON t1 TO user1",
                 "GRANT INSERT (c2), UPDATE (c2) ON t1 TO user2"]
        sql = self.to_sql(inmap, stmts)
        assert len(sql) == 2
        assert sql[0] == "GRANT INSERT (c1), UPDATE (c1) ON TABLE t1 TO user2"
        assert sql[1] == "REVOKE INSERT (c2), UPDATE (c2) ON TABLE t1 " \
            "FROM user2"
Loads and starts the IRC bot for the entire application.
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_privs.py/PrivilegeToSqlTestCase.test_column_change_grants--crossover with--dataset/ETHPy150Open stephenmcd/gnotty/gnotty/server.py/IRCApplication.__init__