#NEWLINE# def test_infrastructure_type_edit( self ) : #NEWLINE# #INDENT# 'Test index page with login at /infrastructure/type/edit/<type_id>' #NEWLINE# response = self . client . post ( '/accounts/login' , { #NEWLINE# #INDENT# 'username' : self . username , #NEWLINE# 'password' : self . password , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertRedirects ( response , '/' ) #NEWLINE# response = self . client . get ( reverse ( 'infrastructure_type_edit' , args = [ response . type . id ] ) ) #NEWLINE# self . assertEquals ( response . status_code , 200 )