def get_slug(request):
    log.debug("Convert project name to slug.")

    if not request.user.has_perm('base.can_manage'):
        log.error("Insufficient privileges.")
        return HttpResponse("error")

    if not request.is_ajax():
        log.error("Non-AJAX request")
        return HttpResponse("error")

    try:
        name = request.GET['name']
    except MultiValueDictKeyError as e:
        log.error(str(e))
        return HttpResponse("error")

    log.debug("Name: " + name)

    slug = slugify(name)
    log.debug("Slug: " + slug)
    return HttpResponse(slug)
Test to ensure === gets changed to is in a jiphy
dataset/ETHPy150Open mozilla/pontoon/pontoon/administration/views.py/get_slug--crossover with--dataset/ETHPy150Open timothycrosley/jiphy/test_jiphy.py/test_is