Skip to content

Commit

Permalink
test more border cases for formrequest
Browse files Browse the repository at this point in the history
  • Loading branch information
dangra committed Apr 20, 2012
1 parent 28401fd commit db99ae3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scrapy/tests/test_http_request.py
Expand Up @@ -489,6 +489,8 @@ def test_from_response_radio(self):
<input type="radio" name="i2">
<input type="radio" name="i3" value="i3v1">
<input type="radio" name="i3">
<input type="radio" value="i4v1">
<input type="radio">
</form>''')
req = self.request_class.from_response(res)
fs = _qs(req)
Expand All @@ -503,6 +505,8 @@ def test_from_response_checkbox(self):
<input type="checkbox" name="i2">
<input type="checkbox" name="i3" value="i3v1">
<input type="checkbox" name="i3">
<input type="checkbox" value="i4v1">
<input type="checkbox">
</form>''')
req = self.request_class.from_response(res)
fs = _qs(req)
Expand All @@ -513,6 +517,7 @@ def test_from_response_input_text(self):
'''<form>
<input type="text" name="i1" value="i1v1">
<input type="text" name="i2">
<input type="text" value="i3v1">
<input type="text">
</form>''')
req = self.request_class.from_response(res)
Expand All @@ -524,6 +529,7 @@ def test_from_response_input_hidden(self):
'''<form>
<input type="hidden" name="i1" value="i1v1">
<input type="hidden" name="i2">
<input type="hidden" value="i3v1">
<input type="hidden">
</form>''')
req = self.request_class.from_response(res)
Expand Down

0 comments on commit db99ae3

Please sign in to comment.