MCPcopy Create free account
hub / github.com/Pylons/webtest / test_textarea_emptyfirstline

Method test_textarea_emptyfirstline

tests/test_forms.py:288–293  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

286 self.assertEqual(form.submit_fields(), [('textarea', "'foo&bar'")])
287
288 def test_textarea_emptyfirstline(self):
289 app = self.callFUT()
290 res = app.get('/form.html')
291 form = res.forms.get("textarea_emptyline_form")
292 self.assertEqual(form.get("textarea").value, "aaa")
293 self.assertEqual(form.submit_fields(), [('textarea', "aaa")])
294
295
296class TestFormLint(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

callFUTMethod · 0.95
submit_fieldsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected