#NEWLINE# def test_BeagleOrderSeq( self ) : #NEWLINE# #INDENT# from tempfile import NamedTemporaryFile #NEWLINE# import os #NEWLINE# try : #NEWLINE# #INDENT# tmp = NamedTemporaryFile ( delete = False , suffix = '.npz' ) #NEWLINE# self . ms . save ( tmp . name ) #NEWLINE# tmp . close ( ) #NEWLINE# m1 = BeagleOrderSeq . load ( self . name ) #NEWLINE# self . assertTrue ( ( self . ms . matrix == m1 . matrix ) . all ( ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# os . remove ( tmp . name )