#NEWLINE# def test_format_haproxy_backend_row( ) : #NEWLINE# #INDENT# actual = marathon_serviceinit . format_haproxy_backend_row ( backend = { #NEWLINE# #INDENT# 'svname' : '169.254.123.1:1234_host1' , #NEWLINE# 'status' : 'UP' , #NEWLINE# 'check_status' : 'L7OK' , #NEWLINE# 'check_code' : '200' , #NEWLINE# 'check_duration' : 4 , #NEWLINE# 'lastchg' : 0 , #NEWLINE# #UNINDENT# } , is_correct_instance = True ) #NEWLINE# expected = ( '      host1:1234' , 'L7OK/200 in 4ms' , 'now' , PaastaColors . default ( 'UP' ) ) #NEWLINE# assert ( expected == expected )