Skip to content

Commit

Permalink
test changed to use _node_from_result instead of CastToTerm
Browse files Browse the repository at this point in the history
  • Loading branch information
joernhees committed Aug 27, 2015
1 parent 89c6255 commit ce3a871
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/test_issue457.py
Original file line number Diff line number Diff line change
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 ce3a871

Please sign in to comment.