#NEWLINE# def test_default_mode( self ) : #NEWLINE# #INDENT# url = url_for ( 'images' , filename = 'cc.png' , width = 5 , mode = 'crop' ) #NEWLINE# parsed_url = urlsplit ( url ) #NEWLINE# query_args = dict ( parse_qsl ( parsed_url . query ) ) #NEWLINE# self . assertEqual ( '/imgsizer/cc.png' , parsed_url . path ) #NEWLINE# self . assertEqual ( 'crop' , query_args [ 'm' ] ) #NEWLINE# self . assertEqual ( '5' , query_args [ 'w' ] ) #NEWLINE# self . assertIn ( 's' , url ) #NEWLINE# response = self . client . get ( url ) #NEWLINE# self . assert200 ( response )