Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64778346
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
Wed, May 29, 09:37
Size
526 B
Mime Type
text/x-python
Expires
Fri, May 31, 09:37 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17956972
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