@with_setup(setup, teardown)
def test_show_samples():
 rows = 10
 cols = 10
 m = (rows * cols)
 model = show_samples.load_model('dbm.pkl', m)
 dataset = yaml_parse.load(model.dataset_yaml_src)
 samples_viewer = show_samples.init_viewer(dataset, rows, cols)
 vis_batch = dataset.get_batch_topo(m)
 show_samples.update_viewer(dataset, samples_viewer, vis_batch, rows, cols)

@ with_setup ( setup , teardown ) def test_show_samples ( ) : rows = 10 cols = 10 m = ( rows * cols ) model = show_samples . load_model ( 'dbm.pkl' , m ) dataset = yaml_parse . load ( model . dataset_yaml_src ) samples_viewer = show_samples . init_viewer ( dataset , rows , cols ) vis_batch = dataset . get_batch_topo ( m ) show_samples . update_viewer ( dataset , samples_viewer , vis_batch , rows , cols )
test the samples update_viewer function .