<commit_before>from django.test import TestCase

# Create your tests here.<commit_msg>Added tests to recommender app<commit_after>from django.test import TestCase
from django.core.urlresolvers import reverse

from .models import RecommenderQuestion, RecommenderChoice

class RecommenderTests(TestCase):
    def test_questions_appear(self):
        """
        If questions exist, display them
        """
        response = self.client.get(reverse('recommender:index'))
        self.assertEqual(response.status_code, 200)
        self.assertContains(response, "age")
{'fraction_non_alphanumeric': 0.08480565371024736, 'fraction_numerical': 0.00530035335689046, 'mean_word_length': 4.201834862385321, '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': '7462281', 'n_tokens_mistral': 154, 'n_tokens_neox': 149, 'n_words': 39}