Page MenuHomec4science

test_line_continuation.py
No OneTemporary

File Metadata

Created
Sat, Nov 9, 05:44

test_line_continuation.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.line_continuation import LineContinuation
from datatypes.editor_comment import EditorComment
from datatypes.reference import Reference
class TestLineContinuation(unittest.TestCase):
def test_attach(self):
tree = ET.Element('asdf')
comment = LineContinuation.create_cls('1,3')
#comment = LineContinuation(reference)
comment.attach_object_to_tree(tree)
commentB = EditorComment.create_cls_from_node(tree.xpath(EditorComment.XML_TAG)[0])
self.assertEqual(type(commentB), LineContinuation)
self.assertEqual(commentB.reference.first_line, comment.reference.first_line)
def test_semantic(self):
pass
#print(LineContinuation.get_semantic_dictionary())
if __name__ == "__main__":
unittest.main()

Event Timeline