def test_api_pages_list_content(self):
    '\n\t\tEnsure get request returns record with correct data.\n\t\t'
    response = self.client.get(reverse('page_list', kwargs={'language': 'nl'}))
    page = response.data['results'][0]
    self.assertEqual(page['title'], self.page1.title)
    self.assertEqual(page['language'], self.page1.language)
    self.assertEqual(page['body'], "<!-- no items in placeholder 'blog_contents' -->")
    self.assertEqual(page['full_page'], self.page1.full_page)
Ensure get request returns record with correct data.
def test_api_pages_list_content(self):
    '\n\t\t\n\t\t'
    response = self.client.get(reverse('page_list', kwargs={'language': 'nl'}))
    page = response.data['results'][0]
    self.assertEqual(page['title'], self.page1.title)
    self.assertEqual(page['language'], self.page1.language)
    self.assertEqual(page['body'], "<!-- no items in placeholder 'blog_contents' -->")
    self.assertEqual(page['full_page'], self.page1.full_page)