Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61866147
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
Thu, May 9, 11:25
Size
909 B
Mime Type
text/x-python
Expires
Sat, May 11, 11:25 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17445096
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