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"))
def test_real_add_claim_rule(self): raise unittest.SkipTest MultipathClaim.claim_specific_hardware("A", "B") self.assertTrue(MultipathClaim.is_hardware_claimed("A", "B"))