Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80566473
test_special_word.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
Sun, Sep 1, 10:21
Size
909 B
Mime Type
text/x-python
Expires
Tue, Sep 3, 10:21 (2 d)
Engine
blob
Format
Raw Data
Handle
20395663
Attached To
rNIETZSCHEPYTHON nietzsche-python
test_special_word.py
View Options
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
Log In to Comment