예제 #1
0
 def test_FPG_type_success(self, value, expected_fpg):
     fpg_type_obj = hpe3pardriver.FPG()
     fpg = fpg_type_obj(value)
     self.assertEqual(expected_fpg, fpg)
예제 #2
0
 def test_FPG_type_failures(self, value, min_ip, max_ip):
     fpg_type_obj = hpe3pardriver.FPG(min_ip=min_ip, max_ip=max_ip)
     self.assertRaises(exception.HPE3ParInvalid, fpg_type_obj, value)