summaryrefslogtreecommitdiff
path: root/test/test_namespace.py
diff options
context:
space:
mode:
authorJoern Hees <dev@joernhees.de>2016-02-15 15:46:42 +0100
committerJoern Hees <dev@joernhees.de>2016-02-15 15:46:42 +0100
commita3636bef5fd480fa197b3c5e75bf1a9f785e11d4 (patch)
tree83894599355fb5fccf7bee3f3ce48cb468a54ae2 /test/test_namespace.py
parent87342d4dbac798021d2c206b51967e22d0245bf7 (diff)
downloadrdflib-a3636bef5fd480fa197b3c5e75bf1a9f785e11d4.tar.gz
Revert "re-introduces special handling for DCTERMS.title and test for it"
This reverts commit 3d89d8e3301ae2de1a6996232f3b594bbf44d530.
Diffstat (limited to 'test/test_namespace.py')
-rw-r--r--test/test_namespace.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/test_namespace.py b/test/test_namespace.py
index 7975220b..d6aa8e68 100644
--- a/test/test_namespace.py
+++ b/test/test_namespace.py
@@ -1,16 +1,9 @@
import unittest
-from rdflib.namespace import DCTERMS
from rdflib.graph import Graph
from rdflib.term import URIRef
from rdflib.py3compat import b
-
-class NamespaceTest(unittest.TestCase):
- def test_dcterms_title(self):
- self.assertEqual(DCTERMS.title, URIRef(DCTERMS + 'title'))
-
-
class NamespacePrefixTest(unittest.TestCase):
def test_compute_qname(self):
@@ -21,7 +14,7 @@ class NamespacePrefixTest(unittest.TestCase):
self.assertEqual(g.compute_qname(URIRef("http://foo/bar#baz")),
("ns2", URIRef("http://foo/bar#"), "baz"))
-
+
# should skip to ns4 when ns3 is already assigned
g.bind("ns3", URIRef("http://example.org/"))
self.assertEqual(g.compute_qname(URIRef("http://blip/blop")),
@@ -35,7 +28,7 @@ class NamespacePrefixTest(unittest.TestCase):
n3 = g.serialize(format="n3")
# Gunnar disagrees that this is right:
# self.assertTrue("<http://example.com/foo> ns1:bar <http://example.com/baz> ." in n3)
- # as this is much prettier, and ns1 is already defined:
+ # as this is much prettier, and ns1 is already defined:
self.assertTrue(b("ns1:foo ns1:bar ns1:baz .") in n3)
def test_n32(self):