def assert_requirements(self, expected_req_strs, addr): reqs = self.request_single_product( ExportedTargetRequirements, Params(DependencyOwner(ExportedTarget(self.tgt(addr))), create_options_bootstrapper()), ) assert sorted(expected_req_strs) == list(reqs)
def assert_owned(self, owned: Iterable[str], exported: str): assert sorted(owned) == sorted( od.target.address.reference() for od in self.request_single_product( OwnedDependencies, Params(DependencyOwner(ExportedTarget(self.tgt(exported)))) ) )
def assert_owned(self, owned: Iterable[str], exported: str): assert sorted(owned) == sorted( od.target.address.spec for od in self.request_single_product( OwnedDependencies, Params( DependencyOwner(ExportedTarget(self.tgt(exported))), create_options_bootstrapper(), ), ))
def assert_requirements(self, expected_req_strs, addr): reqs = self.request_single_product( ExportedTargetRequirements, Params(DependencyOwner(ExportedTarget(self.tgt(addr))))) assert sorted(expected_req_strs) == sorted(reqs.requirement_strs)