Esempio n. 1
0
    def test_can_be_instantiated(self):
        """Open can be instantiated"""
        o1 = Open.browser_on(None)
        o2 = Open.their_browser_on(None)

        assert isinstance(o1, Open)
        assert isinstance(o2, Open)
Esempio n. 2
0
    def test_can_be_instantiated(self):
        """Open can be instantiated"""
        o1 = Open.browser_on(None)
        o2 = Open.their_browser_on(None)
        o3 = Opens.browser_on(None)

        self.assertIsInstance(o1, Open)
        self.assertIsInstance(o2, Open)
        self.assertIsInstance(o3, Open)
Esempio n. 3
0
 def perform_as(self, actor):
     actor.attempts_to(Open.browser_on(self.location))