Ejemplo n.º 1
0
 def set_choice_text_overwrite(self):
     """Test text set/overwrite method"""
     choice = Choice(text="A choice with initial text")
     choice.set_text("This text overwrites the initial text")
     assert_true(choice._text == "This text overwrites the initial text")
Ejemplo n.º 2
0
 def set_choice_text_test(self):
     """Test text set method"""
     choice = Choice()
     choice.set_text("A choice with text set later")
     assert_true(choice._text == "A choice with text set later")