<commit_before># Copyright (c) 2007-2011 gocept gmbh & co. kg
# See also LICENSE.txt

import unittest
import zeit.cms.checkout.helper
import zeit.cms.checkout.interfaces
import zeit.cms.content.interfaces
import zeit.cms.repository.interfaces
import zeit.cms.testing
import zope.app.locking.interfaces
import zope.app.testing.functional
import zope.component
import zope.security.management
import zope.security.testing


class TestHelper(zope.app.testing.functional.BrowserTestCase):

    layer = zeit.cms.testing.cms_layer

    def setUp(self):
        super(TestHelper, self).setUp()
        self.setSite(self.getRootFolder())
        self.repository = zope.component.getUtility(
            zeit.cms.repository.interfaces.IRepository)
        principal = zeit.cms.testing.create_interaction(u'zope.user')

    def tearDown(self):
        zeit.cms.testing.tearDown(self)
        self.setSite(None)
        super(TestHelper, self).tearDown()

    def test_changes(self):<commit_msg>use our functional test case<commit_after># Copyright (c) 2007-2012 gocept gmbh & co. kg
# See also LICENSE.txt

import unittest
import zeit.cms.checkout.helper
import zeit.cms.checkout.interfaces
import zeit.cms.content.interfaces
import zeit.cms.repository.interfaces
import zeit.cms.testing
import zope.component
import zope.security.management
import zope.security.testing


class TestHelper(zeit.cms.testing.FunctionalTestCase):

    def test_changes(self):
{'fraction_non_alphanumeric': 0.09681881051175657, 'fraction_numerical': 0.011065006915629323, 'mean_word_length': 4.242753623188406, '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': '3493272', 'n_tokens_mistral': 487, 'n_tokens_neox': 446, 'n_words': 91}