示例#1
0
    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)
示例#2
0
    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',
                                              ('*****@*****.**', ))
示例#3
0
    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)