<commit_before>import django_webtest

import django.contrib.auth.models as auth_models


class StaticPagesTests(django_webtest.WebTest):
    def setUp(self):
        super().setUp()
        auth_models.User.objects.create_user('u1')

    def test_index_page_with_anonymous_user(self):
        resp = self.app.get('/')
        self.assertEqual(resp.status_int, 200)

    def test_index_page_with_logged_in_user(self):
        resp = self.app.get('/', user='u1')
        self.assertEqual(resp.status_int, 200)

    def test_about_page_with_anonymous_user(self):
        resp = self.app.get('/about/')
        self.assertEqual(resp.status_int, 200)

    def test_about_page_with_logged_in_user(self):
        resp = self.app.get('/about/', user='u1')
        self.assertEqual(resp.status_int, 200)<commit_msg>Test project-list page<commit_after>import django_webtest

import django.contrib.auth.models as auth_models
from django.core.urlresolvers import reverse


class StaticPagesTests(django_webtest.WebTest):
    def setUp(self):
        super().setUp()
        auth_models.User.objects.create_user('u1')

    def test_index_page_with_anonymous_user(self):
        resp = self.app.get('/')
        self.assertEqual(resp.status_int, 200)

    def test_index_page_with_logged_in_user(self):
        resp = self.app.get('/', user='u1')
        self.assertEqual(resp.status_int, 200)

    def test_about_page_with_anonymous_user(self):
        resp = self.app.get('/about/')
        self.assertEqual(resp.status_int, 200)

    def test_about_page_with_logged_in_user(self):
        resp = self.app.get('/about/', user='u1')
        self.assertEqual(resp.status_int, 200)

    def test_project_list_page(self):
        resp = self.app.get(reverse('project-list'), user='u1')
        self.assertEqual(resp.status_int, 200)
{'fraction_non_alphanumeric': 0.12279735682819383, 'fraction_numerical': 0.018722466960352423, 'mean_word_length': 3.5425, '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': '2876235', 'n_tokens_mistral': 633, 'n_tokens_neox': 591, 'n_words': 88}