#!/usr/bin/env python import unittest import RMF class GenericTest(unittest.TestCase): def test_data_types(self): """Test that associations work from python""" for suffix in RMF.suffixes: fh =RMF.create_rmf_file(RMF._get_temporary_file_path("assoc."+suffix)) rh =fh.get_root_node() rh.set_association(fh) rh2= fh.get_node_from_association(fh) self.assertEqual(rh2, rh) if __name__ == '__main__': unittest.main()