#NEWLINE# def test_geweke_iid_gaussian( ) : #NEWLINE# #INDENT# with bayeslite . bayesdb_open ( builtin_metamodels = False ) as bdb : #NEWLINE# #INDENT# bayeslite . bayesdb_register_metamodel ( kl_est , gauss . StdNormalMetamodel ( ) ) #NEWLINE# kl_est = geweke . geweke_kl ( bdb , 'std_normal' , [ [ 'column' , 'numerical' ] ] , [ 'column' ] , [ ( 1 , 0 ) , ( 2 , 0 ) ] , 2 , 2 , 2 , 2 ) #NEWLINE# assert ( kl_est == ( 2 , 0 , 0 ) )