Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65713798
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
Wed, Jun 5, 17:32
Size
573 B
Mime Type
text/x-python
Expires
Fri, Jun 7, 17:32 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18116435
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
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