#NEWLINE# def test_put_invalid_skin( self ) : #NEWLINE# #INDENT# response = self . put ( '/admin/api/skin/' , { #NEWLINE# #INDENT# 'title' : ( 'xyz' * 1000 ) , #NEWLINE# 'header' : '' , #NEWLINE# 'message' : '' , #NEWLINE# 'branding' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( 400 , self . status_code ) #NEWLINE# self . assertRegexpMatches ( response . content , 'Failed to update login page' )