Skip to content

Commit 0a059b5

Browse files
committed
Bug in non-strict request
1 parent e4da4d0 commit 0a059b5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

abe/unittest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ def assert_matches_request(self, sample_request, wsgi_request,
144144
wsgi_request.META, sample_request['headers']
145145
)
146146

147-
if 'body' in sample_request and 'body' not in non_strict:
148-
self.assert_data_equal(wsgi_request.POST, sample_request['body'])
147+
if 'body' in sample_request:
148+
self.assert_data_equal(
149+
wsgi_request.POST, sample_request['body'], non_strict)
149150

150151
def assert_matches_response(self, sample_response, wsgi_response,
151152
non_strict=None):

0 commit comments

Comments
 (0)