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

ContainsAttributeValue missing __repr__ (issues useless errors) #36

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

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Use mox.ContainsAttributeValue comparator for a check that would fail
2. Run the test and get error printed

What is the expected output? What do you see instead?
Just like with the other Comparator classes, it should say something that tells 
what's wrong. Should contain at least what is checking. Instead it displays a 
useless generic Python description of the class instance:
+ function.__call__(<IgnoreArg>, <IgnoreArg>, <mox.ContainsAttributeValue 
instance at 0x8bb4b6c>) -> 0

From that message I cannot tell what attribute/value was expected and is 
missing.

What version of the product are you using? On what operating system?
Latest SVN has the same problem. Linux.


Original issue reported on code.google.com by di...@google.com on 1 Aug 2011 at 9:30

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