def test_should_render_unincluded_numbers_choices_as_a_list(self): activity = ChoiceFactory.list_style( ChoiceFactoryTest.color_choices, "select from:", options=ChoiceFactoryOptions(include_numbers=False), ) self.assertEqual("select from:\n\n - red\n - green\n - blue", activity.text)
def list_style() -> Activity: return ChoiceFactory.list_style(choices, text, None, options)
def test_should_render_choices_as_a_list(self): activity = ChoiceFactory.list_style(ChoiceFactoryTest.color_choices, "select from:") self.assertEqual("select from:\n\n 1. red\n 2. green\n 3. blue", activity.text)