Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64802595
test_uncertain_decipherment.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, May 29, 14:02
Size
893 B
Mime Type
text/x-python
Expires
Fri, May 31, 14:02 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17960980
Attached To
rNIETZSCHEPYTHON nietzsche-python
test_uncertain_decipherment.py
View Options
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
Log In to Comment