#NEWLINE# def testPortWithProtocolTcp( self ) : #NEWLINE# #INDENT# yaml_code = '\n      - containerPort: 123\n        protocol: TCP\n      ' #NEWLINE# x = run_containers . LoadPorts ( yaml . load ( x ) , 'ctr_name' ) #NEWLINE# self . assertEqual ( 1 , len ( x ) ) #NEWLINE# self . assertEqual ( ( 123 , 123 , '' ) , x [ 0 ] )