bugs.py 511 B

1234567891011121314
  1. import odml
  2. import unittest
  3. class BugTests(unittest.TestCase):
  4. def test_doc_repository_attribute_init(self):
  5. repo = "http://portal.g-node.org/odml/terminologies/v1.0/terminologies.xml"
  6. doc = odml.Document(repository=repo)
  7. self.assertEqual(doc._repository, repo,
  8. "Document needs to init its baseclass first, as it overwrites "
  9. "the repository attribute")
  10. self.assertEqual( doc.repository, repo)
  11. if __name__ == '__main__':
  12. unittest.main()