#NEWLINE# def test_expected_events_are_emitted_in_order( self ) : #NEWLINE# #INDENT# driver = CLIDriver ( session = self . session ) #NEWLINE# self . emitter . register ( 'building-command-table.s3' , self . inject_command ) #NEWLINE# driver . main ( 's3 foo' . split ( ) ) #NEWLINE# self . assert_events_fired_in_order ( [ 'building-command-table.main' , 'building-top-level-params' , 'top-level-args-parsed' , 'session-initialized' , 'building-command-table.s3' , 'building-command-table.foo' , 'building-arg-table.foo' , 'before-building-argument-table-parser.s3.foo' ] )