Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61961126
test_knora_base.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
Fri, May 10, 01:49
Size
610 B
Mime Type
text/x-python
Expires
Sun, May 12, 01:49 (2 d)
Engine
blob
Format
Raw Data
Handle
17583088
Attached To
rNIETZSCHEPYTHON nietzsche-python
test_knora_base.py
View Options
import
unittest
from
rdflib
import
URIRef
from
os
import
sep
,
path
,
remove
from
os.path
import
isfile
import
lxml.etree
as
ET
import
sys
sys
.
path
.
append
(
'py2ttl'
)
from
knora_base
import
KnoraBase
,
KNORA_BASE
class
TestKnoraBase
(
unittest
.
TestCase
):
def
test_init
(
self
):
knora
=
KnoraBase
()
self
.
assertEqual
(
len
(
knora
.
kb
)
>
0
,
True
)
self
.
assertEqual
(
knora
.
Resource
,
URIRef
(
'http://www.knora.org/ontology/knora-base#Resource'
))
self
.
assertEqual
(
KNORA_BASE
.
Resource
,
URIRef
(
'http://www.knora.org/ontology/knora-base#Resource'
))
if
__name__
==
"__main__"
:
unittest
.
main
()
Event Timeline
Log In to Comment