Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mox should check that expected calls match with objects API #41

Open
GoogleCodeExporter opened this issue Mar 19, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

If I have a class

class Foo(object):
  def bar(a):
    pass

Then the following should fail
 m_foo = mox.MockObject(Foo)
 m_foo.bar(1, 2)

because the number of arguments doesn't match the acutal implementations 
restrictions.

This will allow tests to fail if the API that they are testing changes from 
beneath them.  

Original issue reported on code.google.com by endob...@google.com on 12 Oct 2011 at 6:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant