#NEWLINE# def test_reconstruction( ) : #NEWLINE# #INDENT# m = LOPQModel . load_proto ( relpath ( './testdata/random_test_model.lopq' ) ) #NEWLINE# code = ( ( 0 , 1 ) , ( 0 , 1 , 2 , 3 ) ) #NEWLINE# r = m . reconstruct ( code ) #NEWLINE# expected = [ ( - 2.27444688 ) , 6.47126941 , 4.5042611 , 4.76683476 , 0.83671082 , 9.36027283 , 8.11780532 , 6.34846377 ] #NEWLINE# assert_true ( np . allclose ( expected , r ) )