def METHOD_NAME(self, name, value):
    """Set daily limit for domain."""
    domain = admin_models.Domain.objects.get(name=name)
    domain.message_limit = value
    domain.save()
    self.assertEqual(
        self.rclient.hget(constants.REDIS_HASHNAME, domain.name),
        domain.message_limit
    )
    return domain