def test_to_int_str_map_na(self): ret = converter.to_int_str_map('N/A') assert_that(len(ret), equal_to(0))
def test_to_int_str_map(self): ret = converter.to_int_str_map( '62: RAID5 63: RAID5 306: RAID10 324: RAID5') assert_that(len(ret), equal_to(4)) assert_that(ret[62], equal_to('RAID5')) assert_that(ret[306], equal_to('RAID10'))