示例#1
0
 def test_to_int_str_map_na(self):
     ret = converter.to_int_str_map('N/A')
     assert_that(len(ret), equal_to(0))
示例#2
0
 def test_to_int_str_map_na(self):
     ret = converter.to_int_str_map('N/A')
     assert_that(len(ret), equal_to(0))
示例#3
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'))
示例#4
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'))