Пример #1
0
    def test_can_be_instantiated(self):
        """Text can be instantiated"""
        t1 = Text.of(None)
        t2 = Text.of_all(None)

        assert isinstance(t1, Text)
        assert isinstance(t2, Text)
Пример #2
0
    def answered_by(self, the_actor: Actor) -> str:
        """
        Direct the actor to read off the text of the results message.

        Args:
            the_actor:
        """
        return Text.of(RESULTS_MESSAGE).answered_by(the_actor)
Пример #3
0
 def answered_by(self, the_actor):
     return Text.of(home_page.WELCOME_MESSAGE).answered_by(the_actor)
 def answered_by(self, the_actor):
     return Text.of(RESULTS_MESSAGE).answered_by(the_actor)