Mercurial > p > roundup > code
diff test/test_templating.py @ 5485:b0359a7c5b6d
create input elements with attributes in a defined (sorted) order
| author | Christof Meerwald <cmeerw@cmeerw.org> |
|---|---|
| date | Thu, 02 Aug 2018 20:56:01 +0100 |
| parents | 3fa026621f69 |
| children | 52cb53eedf77 |
line wrap: on
line diff
--- a/test/test_templating.py Thu Aug 02 19:56:28 2018 +0100 +++ b/test/test_templating.py Thu Aug 02 20:56:01 2018 +0100 @@ -212,7 +212,7 @@ def test_string_field(self): p = StringHTMLProperty(self.client, 'test', '1', None, 'test', 'A string <b> with rouilj@example.com embedded < html</b>') - self.assertEqual(p.field(), '<input type="text" name="test1@test" value="A string <b> with rouilj@example.com embedded &lt; html</b>" size="30">') + self.assertEqual(p.field(), '<input name="test1@test" size="30" type="text" value="A string <b> with rouilj@example.com embedded &lt; html</b>">') def test_string_multiline(self): p = StringHTMLProperty(self.client, 'test', '1', None, 'test', 'A string <b> with rouilj@example.com embedded < html</b>')
