<s> import unittest <EOL> from pyparsing import ParseException <EOL> BAD_SPARQL = """<STR_LIT>""" <EOL> class TestBadSPARQL ( unittest . TestCase ) : <EOL> def test_bad_sparql ( self ) : <EOL> from rdflib import Graph <EOL> g = Graph ( ) <EOL> self . assertRaises ( ParseException , g . query , BAD_SPARQL ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> TestBadSPARQL . test_bad_sparql ( ) </s>
