Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80574532
test_show_highlighted_svg_file.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, 11:28
Size
911 B
Mime Type
text/x-python
Expires
Tue, Sep 3, 11:28 (2 d)
Engine
blob
Format
Raw Data
Handle
20399937
Attached To
rNIETZSCHEPYTHON nietzsche-python
test_show_highlighted_svg_file.py
View Options
import
unittest
from
os
import
sep
,
path
,
remove
,
listdir
from
os.path
import
isdir
,
isfile
,
dirname
,
basename
import
shutil
import
sys
import
lxml.etree
as
ET
import
sys
import
tempfile
import
warnings
sys
.
path
.
append
(
'svgscripts'
)
import
show_highlighted_svg_file
class
TestCopy
(
unittest
.
TestCase
):
def
setUp
(
self
):
show_highlighted_svg_file
.
UNITTESTING
=
True
DATADIR
=
path
.
dirname
(
__file__
)
+
sep
+
'test_data'
self
.
faksimile_dir
=
DATADIR
+
sep
+
'faksimile_svg'
self
.
faksimile_file
=
self
.
faksimile_dir
+
sep
+
'N-VII-1,5et6.svg'
self
.
tmp_dir
=
tempfile
.
mkdtemp
()
@unittest.skip
(
'opens external program "inkscape"'
)
def
test_main
(
self
):
show_highlighted_svg_file
.
main
([
self
.
faksimile_file
,
'Muster'
])
def
tearDown
(
self
):
shutil
.
rmtree
(
self
.
tmp_dir
,
ignore_errors
=
True
)
if
__name__
==
"__main__"
:
unittest
.
main
()
Event Timeline
Log In to Comment