Skip to content

Commit

Permalink
Add test for non-strict post requets.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcouper committed Nov 20, 2015
1 parent 0a059b5 commit db1c556
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ def test_assertion_error_if_post_data_mismatch(self):
self.sample_request, self.mock_wsgi_request
)

def test_matches_non_strict(self):
self.mock_wsgi_request.POST = {'name': 'Something else'}
self.assert_matches_request(
self.sample_request, self.mock_wsgi_request, non_strict=['name']
)


def _abe_wrap_response(response):
abe_mock = AbeMock({
Expand Down

0 comments on commit db1c556

Please sign in to comment.