def _requiredHttpMethodCheck(request, methodName):
    method = request.method
    if method != methodName:
        resp = HttpResponse()
        resp.status_code = httpStatusCodes.METHOD_NOT_ALLOWED
        resp.write(json.dumps({'msg': (methodName)%'Only %s method allowed'}))
        return resp
dataset/ETHPy150Open odeke-em/restAssured/auth/views.py/_requiredHttpMethodCheck/swapped operands of `%`