<commit_before>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)<commit_msg>create a fakesite on TSAdmTest setUp<commit_after>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)
{'fraction_non_alphanumeric': 0.12838801711840228, 'fraction_numerical': 0.008559201141226819, 'mean_word_length': 4.2781954887218046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6246058', 'n_tokens_mistral': 254, 'n_tokens_neox': 240, 'n_words': 43}