def METHOD_NAME(self, logged_in=True, demo=False, admin=False):
    """
    Helper function to test the ingredient overview page
    """
    # Page exists
    response = self.client.get(reverse('nutrition:ingredient:list'))
    self.assertEqual(response.status_code, 200)
    # No ingredients pending review
    if admin:
        self.assertContains(response, 'Ingredients pending review')
    else:
        self.assertNotContains(response, 'Ingredients pending review')
    # Only authorized users see the edit links
    if logged_in and not demo:
        self.assertNotContains(response, 'Only registered users can do this')
    if logged_in and demo:
        self.assertContains(response, 'Only registered users can do this')