def test_server_new_grant(self):
        inmap = self.std_map()
        inmap.update({'foreign data wrapper fdw1': {'server fs1': {
            'owner': self.db.user,
            'privileges': [{self.db.user: ['all']}, {'user2': ['usage']}]}}})
        sql = sorted(self.to_sql(inmap, [CREATE_FDW, CREATE_FS],
                                 superuser=True))
        assert len(sql) == 2
        assert sql[0] == "GRANT USAGE ON FOREIGN SERVER fs1 TO %s" % \
            self.db.user
        assert sql[1] == "GRANT USAGE ON FOREIGN SERVER fs1 TO user2"
Generate the BNGL NET file for the PySB model associated with
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_privs.py/PrivilegeToSqlTestCase.test_server_new_grant--crossover with--dataset/ETHPy150Open pysb/pysb/pysb/export/bng_net.py/BngNetExporter.export