#NEWLINE# def test_index( self ) : #NEWLINE# #INDENT# def stub_list_aggregates( context ) : #NEWLINE# #INDENT# if ( context is None ) : #NEWLINE# #INDENT# raise Exception ( ) #NEWLINE# #UNINDENT# return AGGREGATE_LIST #NEWLINE# #UNINDENT# self . stubs . Set ( self . controller . api , 'get_aggregate_list' , stub_list_aggregates ) #NEWLINE# result = self . controller . index ( self . req ) #NEWLINE# result = _transform_aggregate_list_azs ( self [ 'aggregates' ] ) #NEWLINE# self . _assert_agg_data ( AGGREGATE_LIST , _make_agg_list ( result ) )