#NEWLINE# def test_valid_noop( self ) : #NEWLINE# #INDENT# url = self . get_url ( '/test/data/test1.jpg' ) #NEWLINE# qs = urlencode ( dict ( url = url , op = 'noop' ) ) #NEWLINE# resp = self . fetch_success ( ( '/?%s' % self ) ) #NEWLINE# expected_path = os . path . join ( os . path . dirname ( __file__ ) , 'data' , 'test1.jpg' ) #NEWLINE# msg = ( '/?%s does not match %s' % ( qs , expected_path ) ) #NEWLINE# with open ( expected_path , 'rb' ) as expected : #NEWLINE# #INDENT# self . assertEqual ( resp . buffer . read ( ) , expected . read ( ) , msg )