Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120700551
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, Jul 6, 10:19
Size
526 B
Mime Type
text/x-python
Expires
Tue, Jul 8, 10:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27209837
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