Page MenuHomec4science

test_special_word.py
No OneTemporary

File Metadata

Created
Thu, May 9, 11:25

test_special_word.py

import unittest
from os import sep, path
from os.path import dirname, isdir
import lxml.etree as ET
import sys
sys.path.append('svgscripts')
from datatypes.matrix import Matrix
from datatypes.transkriptionField import TranskriptionField
from datatypes.transkription_position import TranskriptionPosition
from datatypes.special_word import SpecialWord
from datatypes.mark_foreign_hands import MarkForeignHands
from datatypes.word import Word
class TestSpecialWord(unittest.TestCase):
def test_get_semanticAndDataDict(self):
dictionary = SpecialWord.get_semantic_dictionary()
#print(dictionary)
def test_create_cls_from_word(self):
word = Word(text='test')
mark = MarkForeignHands.create_cls_from_word(word)
self.assertEqual(mark.text, word.text)
self.assertEqual(type(mark), MarkForeignHands)
if __name__ == "__main__":
unittest.main()

Event Timeline