summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Car <nicholas.car@surroundaustralia.com>2020-12-29 11:39:40 +1000
committerGitHub <noreply@github.com>2020-12-29 11:39:40 +1000
commit07c72de1840bfc7e8ce7ab57b369af9f4a6c675c (patch)
treecf15140368d50b3e8be83d5b445add66b649f14f
parente5983e97787e152008dedfa31b74afe67a21c8f5 (diff)
downloadrdflib-foaf_fix.tar.gz
remove test using a FOAF deprecated propfoaf_fix
all FOAF properties are now in the ClosedNamespace, whether deprecated or not
-rw-r--r--test/test_namespace.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/test_namespace.py b/test/test_namespace.py
index 2706467f..8d4f7fd6 100644
--- a/test/test_namespace.py
+++ b/test/test_namespace.py
@@ -101,13 +101,10 @@ class NamespacePrefixTest(unittest.TestCase):
def add_not_in_namespace(s):
return FOAF[s]
- # a blatantly non-existent FOAF property
+ # a non-existent FOAF property
self.assertRaises(KeyError, add_not_in_namespace, "blah")
- # a deprecated FOAF property
- self.assertRaises(KeyError, add_not_in_namespace, "firstName")
-
- # a property name within the core FOAF namespace
+ # a property name within the FOAF namespace
self.assertEqual(
add_not_in_namespace("givenName"),
URIRef("http://xmlns.com/foaf/0.1/givenName"),