#NEWLINE# def test__get_fake_values( self ) : #NEWLINE# #INDENT# self . annotations [ 'seed' ] = 0 #NEWLINE# channel_indexes = get_fake_value ( 'channel_indexes' , np . ndarray , seed = 0 , dim = 1 , dtype = 'i' ) #NEWLINE# name = get_fake_value ( 'name' , str , seed = 1 , obj = Unit ) #NEWLINE# description = get_fake_value ( 'description' , str , seed = 2 , obj = 'Unit' ) #NEWLINE# file_origin = get_fake_value ( 'file_origin' , str ) #NEWLINE# attrs1 = { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# 'description' : description , #NEWLINE# 'file_origin' : file_origin , #NEWLINE# #UNINDENT# } #NEWLINE# attrs2 = attrs1 . copy ( ) #NEWLINE# attrs2 . update ( self . annotations ) #NEWLINE# res11 = get_fake_values ( Unit , annotate = False , seed = 0 ) #NEWLINE# res12 = get_fake_values ( 'Unit' , annotate = False , seed = 0 ) #NEWLINE# res21 = get_fake_values ( Unit , annotate = True , seed = 0 ) #NEWLINE# res22 = get_fake_values ( 'Unit' , annotate = True , seed = 0 ) #NEWLINE# assert_arrays_equal ( res11 . pop ( 'channel_indexes' ) , channel_indexes ) #NEWLINE# assert_arrays_equal ( res12 . pop ( 'channel_indexes' ) , channel_indexes ) #NEWLINE# assert_arrays_equal ( res21 . pop ( 'channel_indexes' ) , channel_indexes ) #NEWLINE# assert_arrays_equal ( res22 . pop ( 'channel_indexes' ) , channel_indexes ) #NEWLINE# self . assertEqual ( res11 , attrs1 ) #NEWLINE# self . assertEqual ( res12 , attrs1 ) #NEWLINE# self . assertEqual ( res21 , attrs2 ) #NEWLINE# self . assertEqual ( res22 , attrs2 )