示例#1
0
 def test_is_hardware_claimed(self, get_claimed_hardware):
     get_claimed_hardware.return_value = [dict(vendor_id="foo", product_id="bar"),
                                         dict(vendor_id="hello", product_id="world"), ]
     self.assertTrue(MultipathClaim.is_hardware_claimed("hello", "world"))
     self.assertTrue(MultipathClaim.is_hardware_claimed("foo", "bar"))
示例#2
0
 def test_real_add_claim_rule(self):
     raise unittest.SkipTest
     MultipathClaim.claim_specific_hardware("A", "B")
     self.assertTrue(MultipathClaim.is_hardware_claimed("A", "B"))