'Check whether steps in the flow are displayed to the user.'

def _assert_steps_displayed(self, response, expected_steps, expected_current_step):

    response_dict = self._get_page_data(response)
    self.assertEqual(response_dict['current_step'], expected_current_step)
    self.assertEqual(expected_steps, [step['name'] for step in response_dict['display_steps']])
