#NEWLINE# def test_get_smartstack_endpoints_tcp( ) : #NEWLINE# #INDENT# with mock . patch ( 'service_configuration_lib.read_service_configuration' , autospec = True ) as mock_read_service_configuration : #NEWLINE# #INDENT# mock_read_service_configuration . return_value = { #NEWLINE# #INDENT# 'smartstack' : { #NEWLINE# #INDENT# 'tcpone' : { #NEWLINE# #INDENT# 'proxy_port' : 1234 , #NEWLINE# 'mode' : 'tcp' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# expected = [ 'tcp://169.254.255.254:1234 (tcpone)' ] #NEWLINE# actual = info . get_smartstack_endpoints ( 'unused' , '/fake/soa/dir' ) #NEWLINE# assert ( actual == actual )