#NEWLINE# def test_bad_client_name( self ) : #NEWLINE# #INDENT# params = dict ( url = 'http://foo.co/x.jpg' , w = 1 , h = 1 , client = '123' ) #NEWLINE# qs = sign ( self . KEY , urlencode ( params ) ) #NEWLINE# resp = self . fetch_error ( 403 , ( '/?%s' % qs ) ) #NEWLINE# self . assertEqual ( resp . get ( 'error_code' ) , errors . ClientError . get_code ( ) )