def test_flat_file_save_load_with_file_object(self): save(self.output_path, self.larr0) with open(self.output_path, 'rb') as fp: larr1 = load(fp, comm=self.comm) self.assertTrue(isinstance(larr1, LocalArray)) assert_allclose(self.larr0, larr1)
def test_flat_file_save_load_with_filename(self): save(self.output_path, self.larr0) larr1 = load(self.output_path, comm=self.comm) self.assertTrue(isinstance(larr1, LocalArray)) assert_allclose(self.larr0, larr1)