old_contents: from tsadm.tests import TSAdmTestBase
  
  class TSAdmTest(TSAdmTestBase):
      def test_SiteView(self):
          resp = self.client.get(self.getURL('site:home', kwargs={'name': 'fakesite'}))
          self.assertEqual(resp.status_code, 200)
  
new_contents: from tsadm.tests import TSAdmTestBase
  from ..models import TSAdmSiteDB
  
  class TSAdmTest(TSAdmTestBase):
      def setUp(self):
          super(TSAdmTest, self).setUp()
          site = TSAdmSiteDB(name='fakesite')
          site.save()
  
      def test_SiteView(self):
          resp = self.client.get(self.getURL('site:home', kwargs={'name': 'fakesite'}))
          self.assertEqual(resp.status_code, 200)
  
subject: create a fakesite on TSAdmTest setUp