summaryrefslogtreecommitdiff
path: root/src/zope/i18n/tests/testii18naware.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/i18n/tests/testii18naware.py')
-rw-r--r--src/zope/i18n/tests/testii18naware.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/zope/i18n/tests/testii18naware.py b/src/zope/i18n/tests/testii18naware.py
deleted file mode 100644
index cc37ef8..0000000
--- a/src/zope/i18n/tests/testii18naware.py
+++ /dev/null
@@ -1,41 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001, 2002 Zope Foundation 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.
-#
-##############################################################################
-"""This is a test for the II18nAware interface.
-"""
-import unittest
-
-class TestII18nAware(unittest.TestCase):
-
- def setUp(self):
- self.object = self._createObject()
- self.object.setDefaultLanguage('fr')
-
- def _createObject(self):
- # Should create an object that has lt, en and fr as available
- # languages
- pass
-
- def testGetDefaultLanguage(self):
- self.assertEqual(self.object.getDefaultLanguage(), 'fr')
-
- def testSetDefaultLanguage(self):
- self.object.setDefaultLanguage('lt')
- self.assertEqual(self.object.getDefaultLanguage(), 'lt')
-
- def testGetAvailableLanguages(self):
- self.assertEqual(sorted(self.object.getAvailableLanguages()), ['en', 'fr', 'lt'])
-
-
-def test_suite():
- return unittest.TestSuite() # Deliberatly empty