Skip to content

Commit

Permalink
Bug in non-strict request
Browse files Browse the repository at this point in the history
  • Loading branch information
txels committed Nov 19, 2015
1 parent e4da4d0 commit 0a059b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions abe/unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ def assert_matches_request(self, sample_request, wsgi_request,
wsgi_request.META, sample_request['headers']
)

if 'body' in sample_request and 'body' not in non_strict:
self.assert_data_equal(wsgi_request.POST, sample_request['body'])
if 'body' in sample_request:
self.assert_data_equal(
wsgi_request.POST, sample_request['body'], non_strict)

def assert_matches_response(self, sample_response, wsgi_response,
non_strict=None):
Expand Down

0 comments on commit 0a059b5

Please sign in to comment.