Skip to content

Commit

Permalink
Merge branch 'sparql_store_bnode', addenum to #513
Browse files Browse the repository at this point in the history
* sparql_store_bnode:
  test changed to use _node_from_result instead of CastToTerm
  • Loading branch information
joernhees committed Aug 27, 2015
2 parents cb6efeb + ce3a871 commit 513e143
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/test_issue457.py
Expand Up @@ -4,11 +4,10 @@
from xml.etree import ElementTree

import rdflib
from rdflib.plugins.stores.sparqlstore import CastToTerm
from rdflib.plugins.stores.sparqlstore import _node_from_result
from rdflib.py3compat import b

s = b("""<ns0:literal xmlns:ns0="http://www.w3.org/2005/sparql-results#" />""")
node = ElementTree.parse(io.BytesIO(s)).getroot()
term = CastToTerm(node)
assert term == rdflib.Literal(''), repr(term)

term = _node_from_result(node)
assert term == rdflib.Literal(''), repr(term)

0 comments on commit 513e143

Please sign in to comment.