def setUp(self):
     self.actor = AnActor.named("Perry").who_can(BrowseTheWeb.using(Firefox()))
Пример #2
0
def fixture_actor() -> Generator:
    """Create the actor for our example tests!"""
    the_actor = Actor.named("Perry").who_can(BrowseTheWeb.using(Firefox()))
    yield the_actor
    the_actor.exit_stage_left()
Пример #3
0
    def test_can_be_instantiated(self):
        """Can be instantiated"""
        b = BrowseTheWeb.using(None)

        assert isinstance(b, BrowseTheWeb)