def test_load_from_odmldoc(self):
     """
     test loading the odml-dictionary from an odml-document in python
     """
     doc = create_small_test_odml()
     self.test_table.load_from_odmldoc(doc)
     self.assertEqual(self.test_table._odmldict, self.expected_odmldict)
 def test_load_from_file(self):
     """
     test loading the odml-dictionary from an odml-file
     """
     filename = 'tmp_testfile.odml'
     doc = create_small_test_odml()
     odml.tools.xmlparser.XMLWriter(doc).write_file(filename)
     self.test_table.load_from_file(filename)
     os.remove(filename)
     self.assertEqual(self.test_table._odmldict, self.expected_odmldict)