We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Idea for a verification context manager:
class Verification(object): def __init__(self, m): self.m = m def __enter__(self): self.m.ReplayAll() def __exit__(self, exc_type, exc_value, traceback): if exc_type is None and exc_value is None and traceback is None: self.m.VerifyAll() `` This would allow one to say:
def test_foo(self): with self.mox.Verification(): # …
This nicely delineates the code under test from the setup code.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Idea for a verification context manager:
This nicely delineates the code under test from the setup code.
The text was updated successfully, but these errors were encountered: