def test_get_help_test_with_no_argument(self): s = HelpTextStep( display_name="fake", template="" ) self.assertEqual( s.get_help_text(), '' )
def test_get_help_text(self): s = HelpTextStep( display_name="fake", template="", help_text=" interesting " ) self.assertEqual( s.get_help_text(), "interesting" )
def test_get_help_text_template(self): s = HelpTextStep( display_name="fake", template="", help_text_template="/pathways/something.html" ) self.assertEqual( s.get_help_text_template(), "/pathways/something.html" )
class SomePathway(PagePathway): display_name = "some pathway" slug = "some_pathway" steps = (HelpTextStep(display_name="fake", template="", help_text=" interesting "), )
def test_get_help_text(self): s = HelpTextStep(display_name="fake", template="", help_text=" interesting ") self.assertEqual(s.get_help_text(), "interesting")
def test_get_help_test_with_no_argument(self): s = HelpTextStep(display_name="fake", template="") self.assertEqual(s.get_help_text(), '')
def test_get_help_text_template(self): s = HelpTextStep(display_name="fake", template="", help_text_template="/pathways/something.html") self.assertEqual(s.get_help_text_template(), "/pathways/something.html")
class SomePathway(PagePathway): display_name = "some pathway" slug = "some_pathway" steps = (HelpTextStep(display_name="fake", template=""), )