def testAccessors(self): """Test for Scoping accessors""" self.scoping.proxy_count = "1" self.scoping.idp_list = samlp.IDPList() self.scoping.requester_id.append(samlp.RequesterID()) new_scoping = samlp.scoping_from_string(self.scoping.to_string()) assert new_scoping.proxy_count == "1" assert isinstance(new_scoping.idp_list, samlp.IDPList) assert isinstance(new_scoping.requester_id[0], samlp.RequesterID)
def setup_class(self): self.idp_list = samlp.IDPList()