def test_update_email(self): """Test update_mail""" self.tps.clean_up() self.tps.add_jdoe_in_users() security = Security(self.settings, self.request.session, 'jdoe', '*****@*****.**', 'iamjohndoe', 'iamjohndoe') security.update_email() graph = 'urn:sparql:test_askomics:users' triple = ':jdoe foaf:mbox <mailto:[email protected]>' assert self.tps.test_triple_presence(graph, triple) triple = ':jdoe foaf:mbox <mailto:[email protected]>' assert not self.tps.test_triple_presence(graph, triple)
def test_update_email(self): """Test update_mail""" self.tps.clean_up() self.tps.add_jdoe_in_users() security = Security(self.settings, self.request.session, 'jdoe', '*****@*****.**', 'iamjohndoe', 'iamjohndoe') security.update_email() assert self.tps.test_row_presence('users', 'email', ('*****@*****.**', )) assert not self.tps.test_row_presence('users', 'email', ('*****@*****.**', ))