def setUp(self, *args, **kwargs): self.store = TestingMongoStore(self.conn, self.database_name) _, self.brl_user = self.store.generate_non_persistent_user() self.user_service = UserService(self.store, self.brl_user) self.email = "*****@*****.**" % self.brl_user self.plain_password = "******" allow_mailing = False self.bii_user = self.user_service.register(self.brl_user, self.email, self.plain_password, allow_mailing) self.manager = JWTConfirmEmailManagerFactory.new() _, self.confirmed_user, _ = self.user_service.confirm_account( self.bii_user.confirmation_token)
def setUp(self, *args, **kwargs): self.store = TestingMongoStore(self.conn, self.database_name)