def METHOD_NAME(self):
    response = self.lockout()
    if settings.AXES_LOCK_OUT_AT_FAILURE == True:
        self.assertContains(response, self.LOCKED_MESSAGE, status_code=self.BLOCKED)
    else:
        self.assertNotContains(
            response, self.LOCKED_MESSAGE, status_code=self.STATUS_SUCCESS
        )