<s> from unittest import TestCase <EOL> from django . template import Engine <EOL> from . utils import TEMPLATE_DIR <EOL> class OriginTestCase ( TestCase ) : <EOL> def setUp ( self ) : <EOL> self . engine = Engine ( dirs = [ TEMPLATE_DIR ] ) <EOL> def test_origin_compares_equal ( self ) : <EOL> a = self . engine . get_template ( '<STR_LIT>' ) <EOL> b = self . engine . get_template ( '<STR_LIT>' ) <EOL> self . assertEqual ( a . origin , b . origin ) <EOL> self . assertTrue ( a . origin == b . origin ) <EOL> self . assertFalse ( a . origin != b . origin ) <EOL> def test_origin_compares_not_equal ( self ) : <EOL> a = self . engine . get_template ( '<STR_LIT>' ) <EOL> b = self . engine . get_template ( '<STR_LIT>' ) <EOL> self . assertNotEqual ( a . origin , b . origin ) <EOL> self . assertFalse ( a . origin == b . origin ) <EOL> self . assertTrue ( a . origin != b . origin ) </s>
