def test_form_renders_last_name_input(self): form = EditProfileForm() self.assertIn('id="id_last_name"', form.as_p())