def test_presentation_init(presentation_model):
 presentation = presentation_model
 presentation.initialize_view()
 assert (presentation.view.heading_title == presentation.model.heading_title)
 assert (presentation.view.heading_subtitle == presentation.model.heading_subtitle)
 assert presentation.view.required_section.populate.called
 assert presentation.view.optional_section.populate.called
 assert (not presentation.view.set_list_contents.called)

def test_presentation_init ( presentation_model ) : presentation = presentation_model presentation . initialize_view ( ) assert ( presentation . view . heading_title == presentation . model . heading_title ) assert ( presentation . view . heading_subtitle == presentation . model . heading_subtitle ) assert presentation . view . required_section . populate . called assert presentation . view . optional_section . populate . called assert ( not presentation . view . set_list_contents . called )
sanity check that the primary fields are set on init .