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