def test_get_drms_name(): lm = LibraryManager.get_instance() n = lm.get_drms_name() assert (n != '') print('\nGot DRMS name: %s' % (n))
# limitations under the License. ########################################################################### # ___INFO__MARK_END__ from drmaa2 import Capability from drmaa2 import Version from drmaa2 import LibraryManager # The following are also available as drmaa2 module methods # get_drms_name # get_drmaa_name # drmaa_supports # get_drms_version # get_drmaa_version # get_job_session_names # get_reservation_session_names if __name__ == '__main__': lm = LibraryManager.get_instance() print('Got library manager') drms_name = lm.get_drms_name() print('DRMS Name: %s' % drms_name) drmaa_name = lm.get_drmaa_name() print('DRMAA Name: %s' % drmaa_name) for c in Capability: print('Support for %s: %s' % (c, lm.drmaa_supports(c))) drms_version = Version.get_drms_version() print('DRMS Version: %s' % drms_version) drmaa_version = Version.get_drmaa_version() print('DRMAA Version: %s' % drmaa_version)