Exemplo n.º 1
0
    def create_account(self, username, email, password):
        """Create the account and check that it worked"""
        resp = self._create_account(username, email, password)
        self.assertEqual(resp.status_code, 200)
        data = parse_json(resp)
        self.assertEqual(data['success'], True)

        # Check both that the user is created, and inactive
        self.assertFalse(user(email).is_active)

        return resp
Exemplo n.º 2
0
    def create_account(self, username, email, password):
        """Create the account and check that it worked"""
        resp = self._create_account(username, email, password)
        self.assertEqual(resp.status_code, 200)
        data = parse_json(resp)
        self.assertEqual(data['success'], True)

        # Check both that the user is created, and inactive
        self.assertFalse(user(email).is_active)

        return resp
Exemplo n.º 3
0
 def activate_user(self, email):
     resp = self._activate_user(email)
     self.assertEqual(resp.status_code, 200)
     # Now make sure that the user is now actually activated
     self.assertTrue(user(email).is_active)
Exemplo n.º 4
0
 def activate_user(self, email):
     resp = self._activate_user(email)
     self.assertEqual(resp.status_code, 200)
     # Now make sure that the user is now actually activated
     self.assertTrue(user(email).is_active)