bcwaldon/warlock — pull request #15 by fpischedda (2014-07-13 12:24:19+00:00)
Title: modified 'patch' tests in order to use parsed json objects instead of strings

while running the test (using Python 3.4) I've had failures in the 'patch' tests, for example:
..........FFF.F.
======================================================================
FAIL: test_patch_alter_value (test_core.TestCore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/francescopischedda/works/warlock/test/test_core.py", line 173, in test_patch_alter_value
'[{"path": "/name", "value": "Finland", "op": "replace"}]')
AssertionError: '[{"op": "replace", "path": "/name", "value": "Finland"}]' != '[{"path": "/name", "value": "Finland", "op": "replace"}]'
- [{"op": "replace", "path": "/name", "value": "Finland"}]
+ [{"path": "/name", "value": "Finland", "op": "replace"}]

to prevent this I've changed the tests to compare objects instead of strings