#NEWLINE# def test_window_too_big_exceptions( self ) : #NEWLINE# #INDENT# stream = RandomFixedSizeCrop ( self . example_stream , ( 5 , 4 ) , which_sources = ( 'source2' , ) ) #NEWLINE# assert_raises ( ValueError , stream . transform_source_example , numpy . empty ( ( 3 , 4 , 2 ) ) , 'source2' ) #NEWLINE# bstream = RandomFixedSizeCrop ( self . batch_stream , ( 5 , 4 ) , which_sources = ( 'source1' , ) ) #NEWLINE# assert_raises ( ValueError , bstream . transform_source_batch , numpy . empty ( ( 5 , 3 , 4 , 2 ) ) , 'source1' )