#NEWLINE# def test_login( self ) : #NEWLINE# #INDENT# 'Check that users can login and get a cert created for them.' #NEWLINE# response = test_get_and_post_form ( response . client , settings . LOGIN_URL , { #NEWLINE# #INDENT# 'username' : 'test_user' , #NEWLINE# 'password' : 'password' , #NEWLINE# #UNINDENT# } ) #NEWLINE# expected_url = reverse ( 'home' ) #NEWLINE# self . assertRedirects ( response , expected_url ) #NEWLINE# self . assertTrue ( os . access ( self . cert_fname , os . F_OK ) ) #NEWLINE# self . assertTrue ( os . access ( self . key_fname , os . F_OK ) )