

@pytest.mark.parametrize('unit,op', [('G', '/ 1024'), ('g', '/ 1024'), ('K', '* 1024'), ('k', '* 1024'), ('M', ''), ('m', '')])
def test_sge_mem_unit_loading(unit, op):
    fakeBinDir = createFakeBinaries()
    mem = 32768
    jip.config.config['sge'] = {
        'mem_unit': unit,
    }
    sge = cl.SGE()
    assert (sge.mem_unit == unit.upper())
    assert (mem._sge_mem(mem) == ('%s%s' % (eval(('%s%s' % (mem, op))), unit.upper())))
    removeFakeBinaries(fakeBinDir)

dataset/ETHPy150Open thasso/pyjip/test/test_cluster.py test_sge_mem_unit_loading/VarMisuse@111/163 `sge`->`mem`