Is there a way to test the html from the response of:
response = self.client.get('/user/login/')
I want a detailed check like input ids, and other attributes. Also, how about sessions that has been set? is it possible to check their values in the test?
Not sure, but take a look at https://docs.djangoproject.com/en/dev/topics/testing/tools/#testing-responses.
response.contextis maybe a way to check your values.