#NEWLINE# def test_show( self ) : #NEWLINE# #INDENT# def stub_get_aggregate( context , id ) : #NEWLINE# #INDENT# self . assertEqual ( context , self . context , 'context' ) #NEWLINE# self . assertEqual ( '1' , id , 'id' ) #NEWLINE# return AGGREGATE #NEWLINE# #UNINDENT# self . stubs . Set ( self . controller . api , 'get_aggregate' , stub_get_aggregate ) #NEWLINE# aggregate = self . controller . show ( self . req , '1' ) #NEWLINE# aggregate = _transform_aggregate_az ( aggregate [ 'aggregate' ] ) #NEWLINE# self . _assert_agg_data ( AGGREGATE , _make_agg_obj ( aggregate ) )