summaryrefslogtreecommitdiff
path: root/test/test_graph.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_graph.py')
-rw-r--r--test/test_graph.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/test/test_graph.py b/test/test_graph.py
index 9f6d5d9b..08c112a5 100644
--- a/test/test_graph.py
+++ b/test/test_graph.py
@@ -272,10 +272,15 @@ class GraphTestCase(unittest.TestCase):
self.graph.parse(data="rubbish")
# Turtle - default
- self.graph.parse(data="<http://example.com/a> <http://example.com/a> <http://example.com/a> .")
+ self.graph.parse(
+ data="<http://example.com/a> <http://example.com/a> <http://example.com/a> ."
+ )
# Turtle - format given
- self.graph.parse(data="<http://example.com/a> <http://example.com/a> <http://example.com/a> .", format="turtle")
+ self.graph.parse(
+ data="<http://example.com/a> <http://example.com/a> <http://example.com/a> .",
+ format="turtle",
+ )
# RDF/XML - format given
rdf = """<rdf:RDF
@@ -309,12 +314,14 @@ class GraphTestCase(unittest.TestCase):
self.graph.parse(location="http://www.w3.org/ns/adms.ttl")
self.graph.parse(location="http://www.w3.org/ns/adms.rdf")
except (URLError, HTTPError):
- #this endpoint is currently not available, ignore this test.
+ # this endpoint is currently not available, ignore this test.
pass
try:
# persistent Australian Government online RDF resource without a file-like ending
- self.graph.parse(location="https://linked.data.gov.au/def/agrif?_format=text/turtle")
+ self.graph.parse(
+ location="https://linked.data.gov.au/def/agrif?_format=text/turtle"
+ )
except (URLError, HTTPError):
# this endpoint is currently not available, ignore this test.
pass