#NEWLINE# def test_empty_endpoints_socket( self ) : #NEWLINE# #INDENT# '\n        The proxy is able to connect to Docker on a UNIX socket.\n        ' #NEWLINE# self . _configure ( 'endpoints: {}\nadapters: {}' , dockerOnSocket = True ) #NEWLINE# d = self . client . post ( ( 'http://127.0.0.1:%d/towel' % ( self . proxyPort , ) ) , json . dumps ( { #NEWLINE# #INDENT# 'hiding' : 'things' , #NEWLINE# #UNINDENT# } ) , headers = { #NEWLINE# #INDENT# 'Content-Type' : [ 'application/json' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# d . addCallback ( treq . json_content ) #NEWLINE# def verify( response ) : #NEWLINE# #INDENT# self . assertEqual ( response , { #NEWLINE# #INDENT# 'hiding' : 'things' , #NEWLINE# 'SeenByFakeDocker' : 42 , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# d . addCallback ( verify ) #NEWLINE# return self