def test_reg_comment(self):
     """RegComment correctly displays on a Sublanding Page"""
     sublanding_page = SublandingPage(
         title='Sublanding Page',
         slug='sublanding',
     )
     sublanding_page.content = StreamValue(
         sublanding_page.content.stream_block, [atomic.reg_comment], True)
     publish_page(child=sublanding_page)
     response = django_client.get('/sublanding/')
     self.assertContains(response, 'Enter your comments')
 def test_main_contact_info(self):
     """Main contact info correctly displays on a Sublanding Page"""
     sublanding_page = SublandingPage(
         title='Sublanding Page',
         slug='sublanding',
     )
     contact = self.get_contact()
     sublanding_page.content = StreamValue(
         sublanding_page.content.stream_block,
         [atomic.main_contact_info(contact.id)], True)
     publish_page(child=sublanding_page)
     response = django_client.get('/sublanding/')
     self.assertContains(response, '*****@*****.**')
     self.assertContains(response, '(515) 123-4567')
     self.assertContains(response, 'Ext. 1234')
     self.assertContains(response, '123 abc street')
     self.assertContains(response, 'this is a heading')
     self.assertContains(response, 'this is a body')
     self.assertNotContains(response,
                            'Contact Information')  # Only shown on sidebar