def test_fd_wrapper_new_grant(self):
        inmap = self.std_map()
        inmap.update({'foreign data wrapper fdw1': {
            'owner': self.db.user,
            'privileges': [{self.db.user: ['all']}, {'PUBLIC': ['usage']}]}})
        sql = sorted(self.to_sql(inmap, [CREATE_FDW], superuser=True))
        assert len(sql) == 2
        # assumes self.db.user > PUBLIC
        assert sql[0] == "GRANT USAGE ON FOREIGN DATA WRAPPER fdw1 TO PUBLIC"
        assert sql[1] == "GRANT USAGE ON FOREIGN DATA WRAPPER fdw1 " \
            "TO %s" % self.db.user
Get module base for debug event
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_privs.py/PrivilegeToSqlTestCase.test_fd_wrapper_new_grant--crossover with--dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetEventModuleBase