Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 def list_style() -> Activity:
     return ChoiceFactory.list_style(choices, text, None, options)
Ejemplo n.º 3
0
 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)