#NEWLINE# def test__sampling_rate( self ) : #NEWLINE# #INDENT# name = 'sampling_rate' #NEWLINE# datatype = pq . Quantity #NEWLINE# targ = ( 10000.0 * pq . Hz ) #NEWLINE# res = get_fake_value ( name , datatype ) #NEWLINE# self . assertTrue ( isinstance ( res , pq . Quantity ) ) #NEWLINE# self . assertEqual ( res . units , pq . Hz ) #NEWLINE# assert_arrays_equal ( targ , res ) #NEWLINE# self . assertRaises ( ValueError , get_fake_value , datatype , datatype , dim = 1 ) #NEWLINE# self . assertRaises ( ValueError , get_fake_value , name , np . ndarray )