diff options
| author | eikeon <devnull@localhost> | 2010-02-05 17:09:44 +0000 |
|---|---|---|
| committer | eikeon <devnull@localhost> | 2010-02-05 17:09:44 +0000 |
| commit | 92f03bf23fd06497013c792694d08c791e5acf90 (patch) | |
| tree | 2f34d1317ffcd474d0470ccdf2d6dc6cdcdb6c49 /test/test_sparql | |
| parent | 41a857e112ecf824692e1617d2c82a1532ba09ce (diff) | |
| download | rdflib-92f03bf23fd06497013c792694d08c791e5acf90.tar.gz | |
removed more bits that don't belong
Diffstat (limited to 'test/test_sparql')
| -rw-r--r-- | test/test_sparql/test_sparql_xml_results.py | 37 |
1 files changed, 9 insertions, 28 deletions
diff --git a/test/test_sparql/test_sparql_xml_results.py b/test/test_sparql/test_sparql_xml_results.py index 3bb02668..9ab50e65 100644 --- a/test/test_sparql/test_sparql_xml_results.py +++ b/test/test_sparql/test_sparql_xml_results.py @@ -24,38 +24,19 @@ query = PROLOGUE+""" SELECT ?s ?o WHERE { ?s ?p ?o . } """ -try: - from Ft.Xml import MarkupWriter +expected_fragments = [ + #u"""<sparql:sparql xmlns="http://www.w3.org/2005/sparql-results#"><sparql:head>""", - expected_fragments = [ - u"""<sparql xmlns="http://www.w3.org/2005/sparql-results#"> <head>""", + u"""</sparql:head><sparql:results distinct="false" ordered="false">""", - u"""</head> <results distinct="false" ordered="false">""", + u"""<sparql:binding name="s"><sparql:uri>http://example.org/word</sparql:uri></sparql:binding>""", - u"""<binding name="s"> <uri>http://example.org/word</uri> </binding>""", + u"""<sparql:binding name="o"><sparql:bnode>""", - u"""<binding name="o"> <bnode>""", + u"""<sparql:binding name="o"><sparql:literal datatype="http://www.w3.org/2001/XMLSchema#integer">1</sparql:literal></sparql:binding>""", - u"""<binding name="o"> <literal datatype="http://www.w3.org/2001/XMLSchema#integer">1</literal> </binding>""", - - (u"""<result> <binding name="s"> <uri>http://example.org/word</uri> </binding>""" - """ <binding name="o"> <literal xml:lang="en">Word</literal> </binding> </result>""") - ] - -except ImportError: - expected_fragments = [ - #u"""<sparql:sparql xmlns="http://www.w3.org/2005/sparql-results#"><sparql:head>""", - - u"""</sparql:head><sparql:results distinct="false" ordered="false">""", - - u"""<sparql:binding name="s"><sparql:uri>http://example.org/word</sparql:uri></sparql:binding>""", - - u"""<sparql:binding name="o"><sparql:bnode>""", - - u"""<sparql:binding name="o"><sparql:literal datatype="http://www.w3.org/2001/XMLSchema#integer">1</sparql:literal></sparql:binding>""", - - u"""<sparql:result><sparql:binding name="s"><sparql:uri>http://example.org/word</sparql:uri></sparql:binding><sparql:binding name="o"><sparql:literal xml:lang="en">Word</sparql:literal></sparql:binding></sparql:result>""" - ] + u"""<sparql:result><sparql:binding name="s"><sparql:uri>http://example.org/word</sparql:uri></sparql:binding><sparql:binding name="o"><sparql:literal xml:lang="en">Word</sparql:literal></sparql:binding></sparql:result>""" +] # TODO: @@ -65,7 +46,7 @@ except ImportError: class TestSparqlXmlResults(unittest.TestCase): - known_issue = True + sparql = True def setUp(self): self.graph = ConjunctiveGraph() |
