#NEWLINE# def test_invalid_position_ratio( self ) : #NEWLINE# #INDENT# qs = urlencode ( dict ( url = 'http://foo.co/x.jpg' , w = 1 , h = 1 , pos = '1.2,5.6' ) ) #NEWLINE# resp = self . fetch_error ( 400 , ( '/?%s' % self ) ) #NEWLINE# self . assertEqual ( resp . get ( 'error_code' ) , errors . PositionError . get_code ( ) )