def METHOD_NAME(self, name, value):
    """Set daily limit for account."""
    account = core_models.User.objects.get(username=name)
    mb = account.mailbox
    mb.message_limit = value
    mb.save()
    self.assertEqual(
        self.rclient.hget(constants.REDIS_HASHNAME, account.email),
        mb.message_limit
    )
    return account