Skip to content

Commit

Permalink
added assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Feb 14, 2019
1 parent 18de7b5 commit 14a9db7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ def test_request_gets_input_with_dotdict(self):

assert self.request.input('key')['address']['street'] == 'address 1'
assert self.request.input('key.address.street') == 'address 1'
# assert self.request.input('key.') == False
# assert self.request.input('key.user') == '1'
# assert self.request.input('key.nothing') == False
assert self.request.input('key.') == False
assert self.request.input('key.user') == '1'
assert self.request.input('key.nothing') == False
assert self.request.input('key.nothing', default='test') == 'test'

0 comments on commit 14a9db7

Please sign in to comment.