No way to enforce "no arguments"

Issue #8 on hold
Former user created an issue

.with_args() only does something "if args or kwargs". I wish no .with_args() call would mean "i don't care", a .with_args() means "must not have arguments", or something like that.

-- tv+bitbucket@eagain.net

Comments (4)

  1. Kumar McMillan repo owner

    If you leave out with_args() then that would be the same as saying I don't care what args are sent. For example:

    session = Fake().expects('start')

    will allow:

    session.start()

    and

    session.start(thread=1234)

    so maybe you just want to leave off with_args() altogether?

  2. Log in to comment