Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F84435444
test_simple_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 22, 21:17
Size
905 B
Mime Type
text/x-python
Expires
Tue, Sep 24, 21:17 (2 d)
Engine
blob
Format
Raw Data
Handle
20972297
Attached To
rNIETZSCHEPYTHON nietzsche-python
test_simple_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.simple_word
import
SimpleWord
from
datatypes.mark_foreign_hands
import
MarkForeignHands
from
datatypes.word
import
Word
class
TestSimpleWord
(
unittest
.
TestCase
):
def
test_get_semanticAndDataDict
(
self
):
dictionary
=
SimpleWord
.
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