test_bugs.py 458 B

123456789101112131415
  1. import unittest
  2. import odml
  3. from odml.terminology import REPOSITORY
  4. class BugTests(unittest.TestCase):
  5. def test_doc_repository_attribute_init(self):
  6. doc = odml.Document(repository=REPOSITORY)
  7. self.assertEqual(doc._repository, REPOSITORY,
  8. "Document needs to init its baseclass first, "
  9. "as it overwrites the repository attribute")
  10. self.assertEqual(doc.repository, REPOSITORY)