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")
def get_choice_text_test(self): """Test creation with initial text""" choice = Choice(text="A choice with initial text") assert_true(choice.get_text() == "A choice with initial text")
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")