#NEWLINE# def test_invalid_operation( self ) : #NEWLINE# #INDENT# qs = urlencode ( dict ( url = 'http://foo.co/x.jpg' , op = 'a' ) ) #NEWLINE# resp = self . fetch_error ( 400 , ( '/?%s' % qs ) ) #NEWLINE# self . assertEqual ( resp . get ( 'error_code' ) , errors . OperationError . get_code ( ) )