py312-zope.i18nmessageid-8.2 8.2
Standard Python package source code
unittest TestCase cleanup contextPython unittest TestCase marker
SHA-2563332a41e33d1e131bfbbd64a2e664f763f81beb28347753066558d0c87bd408a
URLhttps://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/10.0/All/py312-zope.i18nmessageid-8.2.tgz
MaleculeH(Po)Md(He)
Evidence
10:29… ANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11# FOR A PARTICULAR PURPOSE.
12#
13##############################################################################
14"""Message ID tests.
15"""
16import sys
17import unittest
18
19from zope.i18nmessageid import message as messageid
20
21
22class PyMessageTests(unittest.TestCase):
23
24 _TEST_READONLY = True
⋯5 lines
135:34…
136 'number',
137 ):
138 self.assertIs(getattr(source, attr),
139 getattr(message, attr))
140
⋯7 lines
159:21… ertTrue(message._readonly)
160
161 def test_copy_no_default(self):
162 # https://github.com/zopefoundation/zope.i18nmessageid/issues/14
163 pref_msg = self._makeOne("${name} Preferences")
164 self.assertIsNone(pr …
264:12… klass.foo = "Foo"
265
266
267@unittest.skipIf('java' in sys.platform or hasattr(sys, 'pypy_version_info'),
268 "We don't expect the C implementation here")
⋯13 lines
10:29… ANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11# FOR A PARTICULAR PURPOSE.
12#
13##############################################################################
14"""I18n Messages and factories.
15"""
16import types
17
18
19__docformat__ = "reStructuredText"
20_marker = object()
21
22
23class Message(str):
24 """Message (Python implementation)
25
26 This is a string used as a message. It has a domain attribute that is
27 its source domain, and a default attribute that is its default text to
28 display when …
No evidence locations were recorded for this file. Raw result