def SeleniumDrivenUserShouldCallAppropriateActionMethodInExpectationWhenCalledWithAnAction(self): mockedGoesToURL = Mock() SeleniumDrivenUserActions.goesTo = mockedGoesToURL bob = SeleniumDrivenUser(self.mockedContext) bob.goesTo("http://www.google.ca") self.assertTrue( mockedGoesToURL.called)