'Expected a username only 2 times in the content, but a relationship
between usercount and pagesize'

def test_editpage_contentsize(self):

    with self.settings(CMS_PERMISSION=True):
        admin_user = self.get_superuser()
        PAGE_NAME = 'TestPage'
        USER_NAME = 'test_size_user_0'
        current_site = Site.objects.get(pk=1)
        page = create_page(PAGE_NAME, 'nav_playground.html', 'en', site=current_site, created_by=admin_user)
        page.save()
        self._page = page
        with self.login_user_context(admin_user):
            url = (base.URL_CMS_PAGE_PERMISSION_CHANGE % self._page.pk)
            response = self.client.get(url)
            self.assertEqual(response.status_code, 200)
            old_response_size = len(response.content)
            old_user_count = get_user_model().objects.count()
            get_user_model().objects.create_user(username=USER_NAME, email=(USER_NAME + '@django-cms.org'), password=USER_NAME)
            user_count = get_user_model().objects.count()
            more_users_in_db = (old_user_count < user_count)
            self.assertTrue(more_users_in_db, 'New    users    got    NOT    created')
            response = self.client.get(url)
            new_response_size = len(response.content)
            page_size_grown = (old_response_size < new_response_size)
            self.assertTrue(page_size_grown, 'Page    size    has    not    grown    after    user    creation')
            text = smart_str(response.content, response.charset)
            foundcount = text.count(USER_NAME)
            self.assertEqual(foundcount, 2, ('Username    %s    appeared    %s    times    in    response.content,    expected    2    times' % (USER_NAME, foundcount)))
