(self)
| 1516 | ) |
| 1517 | |
| 1518 | def test_render_attrs(self): |
| 1519 | self.check_html( |
| 1520 | SplitArrayWidget(forms.TextInput(), size=2), |
| 1521 | "array", |
| 1522 | ["val1", "val2"], |
| 1523 | attrs={"id": "foo"}, |
| 1524 | html=(""" |
| 1525 | <input id="foo_0" name="array_0" type="text" value="val1"> |
| 1526 | <input id="foo_1" name="array_1" type="text" value="val2"> |
| 1527 | """), |
| 1528 | ) |
| 1529 | |
| 1530 | def test_value_omitted_from_data(self): |
| 1531 | widget = SplitArrayWidget(forms.TextInput(), size=2) |
nothing calls this directly
no test coverage detected