<commit_before>#from old_tests import *
#from view_tests import *
#from survey_model_tests import *

from adjuster_test import *
from survey_tests import *
from survey_packager_tests import *


# Why does reverse not work!?!?
from django.test import TestCase
from django.core.urlresolvers import reverse

class ReverseLookupTest(TestCase):
    def setUp(self):
        self.root_name = "fixture1"
        self.survey = Survey.objects.get(root_name=self.root_name)

    def test_first_part_of_packager(self):
        delete_url = \
            reverse('xls2xform.views.delete_survey', kwargs={'survey_root_name': self.root_name})
        edit_url = \
            reverse('xls2xform.views.edit_survey', kwargs={'survey_root_name': self.root_name})<commit_msg>one way works, the other way does not. This might help us track down the problem.<commit_after>#from old_tests import *
#from view_tests import *
#from survey_model_tests import *

from adjuster_test import *
from survey_tests import *
from survey_packager_tests import *


# Why does reverse not work!?!?
from django.test import TestCase
from django.core.urlresolvers import reverse

from xls2xform.views import edit_survey

class ReverseLookupTest(TestCase):
    def setUp(self):
        self.root_name = "fixture1"
        self.survey = Survey.objects.get(root_name=self.root_name)

    def test_first_part_of_packager(self):
        this_works = \
            reverse('nmis.xls2xform.views.edit_survey', kwargs={'survey_root_name': self.root_name})
        this_does_not_work = \
            reverse(edit_survey, kwargs={'survey_root_name': self.root_name})
{'fraction_non_alphanumeric': 0.09085290482076638, 'fraction_numerical': 0.003708281829419036, 'mean_word_length': 4.13968253968254, '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': '5188498', 'n_tokens_mistral': 512, 'n_tokens_neox': 513, 'n_words': 116}