<s> import unittest <EOL> from rdflib . namespace import RDF <EOL> from rdflib . term import URIRef <EOL> from rdflib . term import BNode <EOL> from rdflib . term import Literal <EOL> from rdflib . graph import Graph <EOL> from rdflib . plugins . parsers . rdfxml import CORE_SYNTAX_TERMS <EOL> """<STR_LIT>""" <EOL> class IdentifierEquality ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . uriref = URIRef ( "<STR_LIT>" ) <EOL> self . bnode = BNode ( ) <EOL> self . literal = Literal ( "<STR_LIT>" ) <EOL> self . python_literal = u"<STR_LIT>" <EOL> self . python_literal_2 = u"<STR_LIT:foo>" <EOL> def testA ( self ) : <EOL> self . assertEquals ( self . uriref == self . literal , False ) <EOL> def testB ( self ) : <EOL> self . assertEquals ( self . literal == self . uriref , False ) <EOL> def testC ( self ) : <EOL> self . assertEquals ( self . uriref == self . python_literal , False ) <EOL> def testD ( self ) : <EOL> self . assertEquals ( self . python_literal == self . uriref , False ) <EOL> def testE ( self ) : <EOL> self . assertEquals ( self . literal == self . python_literal , False ) <EOL> def testE2 ( self ) : <EOL> self . assertTrue ( self . literal . eq ( self . python_literal ) , True ) <EOL> def testF ( self ) : <EOL> self . assertEquals ( self . python_literal == self . literal , False ) <EOL> def testG ( self ) : <EOL> self . assertEquals ( "<STR_LIT:foo>" in CORE_SYNTAX_TERMS , False ) <EOL> def testH ( self ) : <EOL> self . assertEquals ( URIRef ( "<STR_LIT>" ) in CORE_SYNTAX_TERMS , True ) <EOL> def testI ( self ) : <EOL> g = Graph ( ) <EOL> g . add ( ( self . uriref , RDF . value , self . literal ) ) <EOL> g . add ( ( self . uriref , RDF . value , self . uriref ) ) <EOL> self . assertEqual ( len ( g ) , <NUM_LIT:2> ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
