<s> """<STR_LIT>""" <EOL> import unittest <EOL> from rdflib . py3compat import format_doctest_out as uformat <EOL> from rdflib . term import URIRef , BNode <EOL> from rdflib . graph import QuotedGraph , Graph <EOL> class TestURIRefRepr ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def testSubclassNameAppearsInRepr ( self ) : <EOL> class MyURIRef ( URIRef ) : <EOL> pass <EOL> x = MyURIRef ( '<STR_LIT>' ) <EOL> self . assertEqual ( repr ( x ) , uformat ( "<STR_LIT>" ) ) <EOL> def testGracefulOrdering ( self ) : <EOL> u = URIRef ( '<STR_LIT>' ) <EOL> g = Graph ( ) <EOL> a = u > u <EOL> a = u > BNode ( ) <EOL> a = u > QuotedGraph ( g . store , u ) <EOL> a = u > g <EOL> class TestBNodeRepr ( unittest . TestCase ) : <EOL> def testSubclassNameAppearsInRepr ( self ) : <EOL> class MyBNode ( BNode ) : <EOL> pass <EOL> x = MyBNode ( ) <EOL> self . assert_ ( repr ( x ) . startswith ( "<STR_LIT>" ) ) </s>
