#NEWLINE# def test_sample_node_random_n_returns_n_valid_rows( self ) : #NEWLINE# #INDENT# node = brewery . nodes . SampleNode ( size = 5 , discard_sample = False , method = 'random' ) #NEWLINE# self . setup_node ( node ) #NEWLINE# self . create_sample ( ) #NEWLINE# self . initialize_node ( node ) #NEWLINE# node . run ( ) #NEWLINE# node . finalize ( ) #NEWLINE# self . assertEqual ( len ( self . output . buffer ) , 5 ) #NEWLINE# self . assertAllRows ( )