Skip to content

Commit

Permalink
Changed to use the global test manager, who has global grants.
Browse files Browse the repository at this point in the history
Really, only global users with global grants can use the application
controller.  This needs some refinement in the future.
  • Loading branch information
Jim Fulton committed Aug 27, 2004
1 parent 544f3cc commit b792fd9
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions browser/ftests/test_translationdomaincontrol.py
@@ -0,0 +1,49 @@
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Translation Domain Control Tests
$Id$
"""
import unittest
from zope.app.tests.functional import BrowserTestCase

class ZODBControlTest(BrowserTestCase):

def testDomainOverview(self):
response = self.publish(
'/++etc++process/@@TranslationDomain.html',
basic='globalmgr:globalmgrpw')

body = response.getBody()
self.checkForBrokenLinks(body,
'/++etc++process/@@TranslationDomain.html',
basic='globalmgr:globalmgrpw')

def testReload(self):
response = self.publish('/++etc++process/@@TranslationDomain.html',
basic='globalmgr:globalmgrpw',
form={'language': u'de',
'domain': u'zope',
'RELOAD': u'Reload'})
body = response.getBody()
self.assert_('Message Catalog successfully reloaded.' in body)


def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(ZODBControlTest))
return suite

if __name__=='__main__':
unittest.main(defaultTest='test_suite')

0 comments on commit b792fd9

Please sign in to comment.