]> khamidou — GitHub mirrors - vcrpy.git/commit
Use Content-Type based approach for body matcher
authorDiaoul <diaoulael@gmail.com>
Sat, 4 Jul 2015 16:57:37 +0000 (18:57 +0200)
committerDiaoul <diaoulael@gmail.com>
Sat, 4 Jul 2015 17:21:14 +0000 (19:21 +0200)
commit3986caf182c546e4159fdafb839559ecf956b9c6
tree108b9d38cf57268ffe31180f173c5feada1a206d
parentcc6c26646cb7b37f199decb86d3b8b89ed39def4
Use Content-Type based approach for body matcher

When converting objects to body, dicts and sets order can change
resulting in a different but same body. This fixes the issue by
comparing the enclosed data in the body rather than the body itself
while still allowing raw body matching with the raw_body matcher.
README.rst
vcr/config.py
vcr/matchers.py