<s> from django . contrib . auth . models import User <EOL> from django . contrib . sites . models import Site <EOL> from django . core . cache import cache <EOL> from django . db import models <EOL> from django . test import TestCase <EOL> class TestModel ( models . Model ) : <EOL> "<STR_LIT>" <EOL> name = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> class Meta : <EOL> app_label = '<STR_LIT>' <EOL> def __unicode__ ( self ) : <EOL> return self . name <EOL> def get_absolute_url ( self ) : <EOL> return '<STR_LIT>' % self . id <EOL> class SitemapTestsBase ( TestCase ) : <EOL> protocol = '<STR_LIT:http>' <EOL> domain = '<STR_LIT>' if Site . _meta . installed else '<STR_LIT>' <EOL> urls = '<STR_LIT>' <EOL> def setUp ( self ) : <EOL> self . base_url = '<STR_LIT>' % ( self . protocol , self . domain ) <EOL> self . old_Site_meta_installed = Site . _meta . installed <EOL> cache . clear ( ) <EOL> TestModel . objects . create ( name = '<STR_LIT>' ) <EOL> def tearDown ( self ) : <EOL> Site . _meta . installed = self . old_Site_meta_installed </s>
