Skip to content

Commit

Permalink
Backported
Browse files Browse the repository at this point in the history
r26488 | srichter | 2004-07-13 13:13:19 -0400 (Tue, 13 Jul 2004) | 2 lines
r26489 | srichter | 2004-07-13 13:14:44 -0400 (Tue, 13 Jul 2004) | 3 lines
r26490 | srichter | 2004-07-13 13:15:34 -0400 (Tue, 13 Jul 2004) | 2 lines
r26491 | srichter | 2004-07-13 13:16:12 -0400 (Tue, 13 Jul 2004) | 2 lines
r26492 | srichter | 2004-07-13 13:18:09 -0400 (Tue, 13 Jul 2004) | 2 lines
r26493 | srichter | 2004-07-13 13:19:25 -0400 (Tue, 13 Jul 2004) | 2 lines
r26494 | srichter | 2004-07-13 13:21:02 -0400 (Tue, 13 Jul 2004) | 4 lines
r26495 | srichter | 2004-07-13 13:23:17 -0400 (Tue, 13 Jul 2004) | 2 lines
r26496 | srichter | 2004-07-13 13:24:35 -0400 (Tue, 13 Jul 2004) | 2 lines
r26497 | srichter | 2004-07-13 13:25:02 -0400 (Tue, 13 Jul 2004) | 2 lines
r26498 | srichter | 2004-07-13 13:26:37 -0400 (Tue, 13 Jul 2004) | 5 lines
r26499 | srichter | 2004-07-13 13:31:56 -0400 (Tue, 13 Jul 2004) | 2 lines
  • Loading branch information
strichter committed Aug 12, 2004
1 parent ffdf379 commit e098a72
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='mgr:mgrpw')

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

def testReload(self):
response = self.publish('/++etc++process/@@TranslationDomain.html',
basic='mgr:mgrpw',
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 e098a72

Please sign in to comment.