Page MenuHomec4science

test_uncertain_decipherment.py
No OneTemporary

File Metadata

Created
Wed, May 29, 14:02

test_uncertain_decipherment.py

import unittest
from os import sep, path
from os.path import dirname, basename, isfile, isdir
import lxml.etree as ET
import sys
sys.path.append('svgscripts')
from datatypes.page import Page
from datatypes.editor_comment import EditorComment
from datatypes.uncertain_decipherment import UncertainDecipherment
class TestUncertainDecipherment(unittest.TestCase):
def test_attach(self):
comment = UncertainDecipherment()
tree = ET.Element('asdf')
comment.attach_object_to_tree(tree)
commentB = EditorComment.create_cls_from_node(tree.xpath(EditorComment.XML_TAG)[0])
self.assertEqual(type(commentB), UncertainDecipherment)
self.assertEqual(commentB.is_uncertain, comment.is_uncertain)
def test_semantic(self):
pass
#print(UncertainDecipherment.get_semantic_dictionary())
if __name__ == "__main__":
unittest.main()

Event Timeline