def test_full_width_text(self):
     """Full width text content correctly displays on a Learn Page"""
     learn_page = LearnPage(
         title='Learn Page',
         slug='learn',
     )
     learn_page.content = StreamValue(learn_page.content.stream_block,
                                      [atomic.full_width_text], True)
     publish_page(child=learn_page)
     response = django_client.get('/learn/')
     self.assertContains(response, 'Full width text content')
 def test_tableblock(self):
     """Table correctly displays on a Learn Page"""
     learn_page = LearnPage(
         title='Learn Page',
         slug='learn',
     )
     learn_page.content = StreamValue(learn_page.content.stream_block,
                                      [atomic.table_block], True)
     publish_page(child=learn_page)
     response = django_client.get('/learn/')
     self.assertContains(response, 'Header One')
     self.assertContains(response, 'Row 1-1')
     self.assertContains(response, 'Row 2-1')