On edit_sa_summary, I had left out the sa_form from the context, and had not used sda_form correctly. So on the rendered page, you couldn't modify an sa or an sda. But test_edit_sa_summary_view() passes! This is because the view function is being tested, not the rendered page.
One improvement is to check that the form elements appear in the rendered page content_str = response.content.decode(). I wonder if I need something like selenium to interact with the rendered page?
On edit_sa_summary, I had left out the sa_form from the context, and had not used sda_form correctly. So on the rendered page, you couldn't modify an sa or an sda. But test_edit_sa_summary_view() passes! This is because the view function is being tested, not the rendered page.
One improvement is to check that the form elements appear in the rendered page
content_str = response.content.decode()
. I wonder if I need something like selenium to interact with the rendered page?