コード例 #1
0
 def setUpClass(cls):
     cls.conn = pyrfc.Connection(**params)
     # Assure english as connection language
     connection_info = cls.conn.get_connection_attributes()
     if connection_info['isoLanguage'] != u'EN':
         raise pyrfc.RFCError(
             "Testing must be done with English as language.")
コード例 #2
0
 def setUpClass(cls):
     cls.conn = pyrfc.Connection(**config._sections['connection'])
     # Assure english as connection language
     conn_attr = cls.conn.get_connection_attributes()
     if conn_attr['isoLanguage'] != u'EN':
         raise pyrfc.RFCError("Testing must be done with English as language.")
     # ZCONN - connection to system with ZPRFC function modules
     cls.zconn = pyrfc.Connection(**config._sections['connection_e1q'])