You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frompyne.test_doubles.expectationsimportexpectfrompyne.pyne_test_collectorimportitfrompyne.pyne_testerimportpynefrompyne.test_doubles.spyimportstub@pynedef_():
@it("should match positional arguments when they are named explicitly")def_(self):
classSomeClass():
defsome_method(self, arg1, arg2):
passinstance=SomeClass()
stub(instance, instance.some_method)
instance.some_method("first-arg", arg2="second-arg")
expect(instance.some_method).was_called_with(arg1="first-arg", arg2="second-arg")
e.g.