def METHOD_NAME(self, fail=False):
    """
    Helper function
    """
    ingredient = Ingredient.objects.get(pk=7)
    self.assertEqual(ingredient.status, Ingredient.STATUS_PENDING)
    response = self.client.get(reverse('nutrition:ingredient:decline', kwargs={'pk': 7}))
    ingredient = Ingredient.objects.get(pk=7)
    self.assertEqual(response.status_code, 302)
    if not fail:
        self.assertEqual(ingredient.status, Ingredient.STATUS_DECLINED)
        response = self.client.get(response['Location'])
        self.assertEqual(response.status_code, 200)
    else:
        self.assertEqual(ingredient.status, Ingredient.STATUS_PENDING)