def METHOD_NAME(self, response, data, model=models.Analysis, save=False):
    "Check the response on POST request is redirected"
    self.assertEqual(response.status_code, 302,
                     f"Could not redirect :\nresponse:{response}")
    if save:
        self.assertTrue(model.save.called, "save() method not called when editing.")