Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91237813
test_get_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
Sat, Nov 9, 06:22
Size
1 KB
Mime Type
text/x-python
Expires
Mon, Nov 11, 06:22 (2 d)
Engine
blob
Format
Raw Data
Handle
22199783
Attached To
rNIETZSCHEPYTHON nietzsche-python
test_get_text_field.py
View Options
import
lxml.etree
as
ET
from
os
import
sep
,
path
,
remove
from
os.path
import
isdir
,
isfile
,
dirname
,
basename
import
shutil
import
sys
import
tempfile
import
unittest
import
warnings
import
get_text_field
class
TestGETIMAGEINFO
(
unittest
.
TestCase
):
def
setUp
(
self
):
DATADIR
=
path
.
dirname
(
__file__
)
+
sep
+
'test_data'
self
.
xml_file
=
DATADIR
+
sep
+
'N_VII_1_page138.xml'
self
.
fix_transkription_positions
=
DATADIR
+
sep
+
'Mp_XIV_page419a.xml'
def
test_main
(
self
):
get_text_field
.
main
([
'/home/knister0/ownCloud/nietzscheDE/Bearbeitung_Faksimile/Mp_XVI/Mp-XVI-4,13.jpg'
,
'1260.3199'
,
'1339.36'
])
get_text_field
.
main
([
'/home/knister0/ownCloud/myNietzscheDE/Druckmanuscripte/faksimiles/D-20a,1.jpg'
,
'1221.28'
,
'1446.08'
])
def
test_get_text_field_on_thumb
(
self
):
pass
#tf, width, height = get_text_field.get_text_field_on_thumb('/home/knister0/ownCloud/Der_spaete_Nietzsche/DATA/faksimiles/Mp-XVII,243_thumb.jpg')
#print(tf, width, height)
if
__name__
==
"__main__"
:
unittest
.
main
()
Event Timeline
Log In to Comment