Ejemplo n.º 1
0
 def test_get_help_test_with_no_argument(self):
     s = HelpTextStep(
         display_name="fake", template=""
     )
     self.assertEqual(
         s.get_help_text(), ''
     )
Ejemplo n.º 2
0
 def test_get_help_text(self):
     s = HelpTextStep(
         display_name="fake", template="", help_text=" interesting "
     )
     self.assertEqual(
         s.get_help_text(), "interesting"
     )
Ejemplo n.º 3
0
 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"
     )
Ejemplo n.º 4
0
 class SomePathway(PagePathway):
     display_name = "some pathway"
     slug = "some_pathway"
     steps = (HelpTextStep(display_name="fake",
                           template="",
                           help_text=" interesting "), )
Ejemplo n.º 5
0
 def test_get_help_text(self):
     s = HelpTextStep(display_name="fake",
                      template="",
                      help_text=" interesting ")
     self.assertEqual(s.get_help_text(), "interesting")
Ejemplo n.º 6
0
 def test_get_help_test_with_no_argument(self):
     s = HelpTextStep(display_name="fake", template="")
     self.assertEqual(s.get_help_text(), '')
Ejemplo n.º 7
0
 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")
Ejemplo n.º 8
0
 class SomePathway(PagePathway):
     display_name = "some pathway"
     slug = "some_pathway"
     steps = (HelpTextStep(display_name="fake", template=""), )