def test_report_luns_data(): from infi.asi.cdb.report_luns import ReportLunsData data = ReportLunsData.create_from_string(DATA) assert data.lun_list == [i for i in range(0,43)]
def sync_wait(*args, **kwargs): from infi.asi.cdb.report_luns import ReportLunsData raw = '\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x01\x00\x00\x40\x00\x00\x00\x00' data = ReportLunsData.create_from_string(raw) data.normalize_lun_list() return data
def test_report_luns_data(): from infi.asi.cdb.report_luns import ReportLunsData data = ReportLunsData.create_from_string(DATA) assert data.lun_list == [i for i in range(0, 43)]
def sync_wait(*args, **kwargs): from infi.asi.cdb.report_luns import ReportLunsData raw = b'\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x01\x00\x00\x40\x00\x00\x00\x00' data = ReportLunsData.create_from_string(raw) data.normalize_lun_list() return data