#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def test_add_and_list_http( self ) : #NEWLINE# #INDENT# extraCommands = [ { #NEWLINE# #INDENT# 'command' : 'order 0' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : 'type DefaultRoute' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : 'connector http(http1)' , #NEWLINE# #UNINDENT# } ] #NEWLINE# ( yield self . add_moroute ( 'jcli : ' , extraCommands ) ) #NEWLINE# expectedList = [ '#Order Type                    Connector ID\\(s\\)                                  Filter\\(s\\)' , '#0     DefaultRoute            http\\(http1\\)' , 'Total MO Routes: 1' ] #NEWLINE# commands = [ { #NEWLINE# #INDENT# 'command' : 'morouter -l' , #NEWLINE# 'expect' : expectedList , #NEWLINE# #UNINDENT# } ] #NEWLINE# ( yield self . _test ( 'jcli : ' , commands ) )