summaryrefslogtreecommitdiff
path: root/tests/test_forms.py
diff options
context:
space:
mode:
authorVictor Safronovich <vsafronovich@gmail.com>2013-05-04 18:47:18 +0600
committerVictor Safronovich <vsafronovich@gmail.com>2013-05-04 18:47:18 +0600
commit757cb813edbbc3dd5b40e57ad62496e18bb89bf8 (patch)
treeb129bd9f3d7f01202dc653dad42bfc9934c266ca /tests/test_forms.py
parent9a8058ac5fe4bfd5a2bd49e6004f85dd19ed365d (diff)
downloadwebtest-757cb813edbbc3dd5b40e57ad62496e18bb89bf8.tar.gz
remove leading newline from textarea
Diffstat (limited to 'tests/test_forms.py')
-rw-r--r--tests/test_forms.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_forms.py b/tests/test_forms.py
index edd1857..31bea5f 100644
--- a/tests/test_forms.py
+++ b/tests/test_forms.py
@@ -195,6 +195,13 @@ class TestInput(unittest.TestCase):
self.assertEqual(form.get("textarea").value, "'foo&bar'")
self.assertEqual(form.submit_fields(), [('textarea', "'foo&bar'")])
+ def test_textarea_emptyfirstline(self):
+ app = self.callFUT()
+ res = app.get('/form.html')
+ form = res.forms.get("textarea_emptyline_form")
+ self.assertEqual(form.get("textarea").value, "aaa")
+ self.assertEqual(form.submit_fields(), [('textarea', "aaa")])
+
class TestFormLint(unittest.TestCase):