Ejemplo n.º 1
0
    def test_connect_existing_user_different_email(self):

        user = tt_make_user("Jonny")

        # his email is [email protected]
        velruse_user = VelruseModel.connect(user, "facebook", "328957239052",
                                            "*****@*****.**", True)

        meta.Session.commit()

        self.assertNotEqual(velruse_user, None)
        self.assertEqual(user.id, velruse_user.user_id)
        self.assertNotEqual(user.activation_code, None)
Ejemplo n.º 2
0
    def test_connect_existing_user_same_email(self):

        user = tt_make_user("Jonny")

        # his email is [email protected]
        velruse_user = VelruseModel.connect(user, "facebook", "239857329847",
                                            "*****@*****.**", True)

        meta.Session.commit()

        self.assertNotEqual(velruse_user, None)
        self.assertEqual(user.id, velruse_user.user_id)
        self.assertEqual(user.activation_code, None)
Ejemplo n.º 3
0
    def test_connect_existing_user_different_email(self):

        user = tt_make_user("Jonny")

        # his email is [email protected]
        velruse_user = VelruseModel.connect(user,
                                            "facebook",
                                            "328957239052",
                                            "*****@*****.**",
                                            True)

        meta.Session.commit()

        self.assertNotEqual(velruse_user, None)
        self.assertEqual(user.id, velruse_user.user_id)
        self.assertNotEqual(user.activation_code, None)
Ejemplo n.º 4
0
    def test_connect_existing_user_same_email(self):

        user = tt_make_user("Jonny")

        # his email is [email protected]
        velruse_user = VelruseModel.connect(user,
                                            "facebook",
                                            "239857329847",
                                            "*****@*****.**",
                                            True)

        meta.Session.commit()

        self.assertNotEqual(velruse_user, None)
        self.assertEqual(user.id, velruse_user.user_id)
        self.assertEqual(user.activation_code, None)