def testAccessors(self): """Test for IDPList accessors""" self.idp_list.idp_entry.append(samlp.idp_entry_from_string( samlp_data.TEST_IDP_ENTRY)) self.idp_list.get_complete = samlp.GetComplete( text="http://www.example.com/GetComplete") new_idp_list = samlp.idp_list_from_string(self.idp_list.to_string()) assert isinstance(new_idp_list.idp_entry[0], samlp.IDPEntry) assert new_idp_list.get_complete.text.strip() == \ "http://www.example.com/GetComplete"
def testAccessors(self): """Test for IDPEntry accessors""" self.idp_entry.provider_id = "http://www.example.com/provider" self.idp_entry.name = "the provider" self.idp_entry.loc = "http://www.example.com/Loc" new_idp_entry = samlp.idp_entry_from_string(self.idp_entry.to_string()) assert new_idp_entry.provider_id == "http://www.example.com/provider" assert new_idp_entry.name == "the provider" assert new_idp_entry.loc == "http://www.example.com/Loc"
def testAccessors(self): """Test for IDPList accessors""" self.idp_list.idp_entry.append( samlp.idp_entry_from_string(samlp_data.TEST_IDP_ENTRY)) self.idp_list.get_complete = samlp.GetComplete( text="http://www.example.com/GetComplete") new_idp_list = samlp.idp_list_from_string(self.idp_list.to_string()) assert isinstance(new_idp_list.idp_entry[0], samlp.IDPEntry) assert new_idp_list.get_complete.text.strip() == \ "http://www.example.com/GetComplete"
def testUsingTestData(self): """Test for idp_entry_from_string() using test data""" new_idp_entry = samlp.idp_entry_from_string(samlp_data.TEST_IDP_ENTRY) assert new_idp_entry.provider_id == "http://www.example.com/provider" assert new_idp_entry.name == "the provider" assert new_idp_entry.loc == "http://www.example.com/Loc"