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

Fixed #22465 -- New assertion assertJSONNotEqual #2579

Closed
wants to merge 3 commits into from
Closed

Fixed #22465 -- New assertion assertJSONNotEqual #2579

wants to merge 3 commits into from

Conversation

amatellanes
Copy link

Added assertion assertJSONNotEqual() which allow you to test that two JSON fragments are not equal.

def assertJSONNotEqual(self, raw, expected_data, msg=None):
"""
Asserts that the JSON fragments raw and expected_data are not equal.
Usual JSON non-significant whitespace rules apply as the heavyweight is delegated to the json library.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you line wrap around 80 chars like the other lines?

@loic
Copy link
Member

loic commented Apr 18, 2014

Looking good, left a couple of nitpick comments in line.

@amatellanes
Copy link
Author

Done.

@loic
Copy link
Member

loic commented Apr 18, 2014

Thanks, merged in 8394e57.

@loic loic closed this Apr 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants