#NEWLINE# def test_content_length_post_hook( self ) : #NEWLINE# #INDENT# '\n        When the content length is changed by a post-hook, test that powerstrip returns the\n        correct content as per the content-length\n        ' #NEWLINE# d = self . _hookTest ( 'endpoints:\n  "POST %(dockerEndpoint)s":\n    pre: []\n    post: [adder,adder,adder,adder,adder,adder,adder,adder,adder]\nadapters:\n  adder: http://127.0.0.1:%(adderPort)d%(adapterEndpoint)s' , adderArgs = dict ( post = True ) ) #NEWLINE# def verify( response ) : #NEWLINE# #INDENT# self . assertEqual ( response , { #NEWLINE# #INDENT# 'Number' : 10 , #NEWLINE# 'SeenByFakeDocker' : 42 , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# d . addCallback ( verify ) #NEWLINE# return d