Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80566053
test_text_field.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:18
Size
526 B
Mime Type
text/x-python
Expires
Tue, Sep 3, 10:18 (2 d)
Engine
blob
Format
Raw Data
Handle
20395675
Attached To
rNIETZSCHEPYTHON nietzsche-python
test_text_field.py
View Options
import
unittest
from
os
import
sep
,
path
from
os.path
import
isdir
,
dirname
,
basename
import
lxml.etree
as
ET
import
sys
import
sys
sys
.
path
.
append
(
'svgscripts'
)
from
datatypes.text_field
import
TextField
class
TestTextField
(
unittest
.
TestCase
):
def
test_init
(
self
):
text_field
=
TextField
(
width
=
10
,
height
=
10
,
x
=
10
,
y
=
10
)
self
.
assertEqual
(
text_field
.
xmin
,
10
)
self
.
assertEqual
(
text_field
.
xmax
,
20
)
self
.
assertEqual
(
text_field
.
ymax
,
20
)
if
__name__
==
"__main__"
:
unittest
.
main
()
Event Timeline
Log In to Comment