def METHOD_NAME(self):
    # Add more ingredients so we can test the pagination
    self.user_login('admin')
    data = {
        "name": "Test ingredient",
        "language": 2,
        "sodium": 10.54,
        "energy": 176,
        "fat": 8.19,
        "carbohydrates_sugar": 0.0,
        "fat_saturated": 3.24,
        "fibres": 0.0,
        "protein": 25.63,
        "carbohydrates": 0.0,
        'license': 1,
        'license_author': 'internet'
    }
    for i in range(0, 50):
        self.client.post(reverse('nutrition:ingredient:add'), data)
    # Page exists
    self.user_logout()
    response = self.client.get(reverse('nutrition:ingredient:list'))
    self.assertEqual(response.status_code, 200)
    self.assertEqual(len(response.context['ingredients_list']), PAGINATION_OBJECTS_PER_PAGE)
    response = self.client.get(reverse('nutrition:ingredient:list'), {'page': 2})
    self.assertEqual(response.status_code, 200)
    self.assertEqual(len(response.context['ingredients_list']), PAGINATION_OBJECTS_PER_PAGE)
    rest_ingredients = 13
    response = self.client.get(reverse('nutrition:ingredient:list'), {'page': 3})
    self.assertEqual(response.status_code, 200)
    self.assertEqual(len(response.context['ingredients_list']), rest_ingredients)
    # 'last' is a special case
    response = self.client.get(reverse('nutrition:ingredient:list'), {'page': 'last'})
    self.assertEqual(response.status_code, 200)
    self.assertEqual(len(response.context['ingredients_list']), rest_ingredients)
    # Page does not exist
    response = self.client.get(reverse('nutrition:ingredient:list'), {'page': 100})
    self.assertEqual(response.status_code, 404)
    response = self.client.get(reverse('nutrition:ingredient:list'), {'page': 'foobar'})
    self.assertEqual(response.status_code, 404)