Because of whitespaces from the code formatting in my Editor (VSCodium), the unit test self.assertContains(response, '<input name="item_text"') fails.
Here's the formatted html:
<form method="POST">
<input
name="item_text"
id="id_new_item"
placeholder="Enter a to-do item"
/>
</form>
Because of whitespaces from the code formatting in my Editor (VSCodium), the unit test
self.assertContains(response, '<input name="item_text"')fails.Here's the formatted html: