Benign netbsd Download

py312-zope.i18nmessageid-8.2 8.2

Standard Python package source code

unittest TestCase cleanup contextPython unittest TestCase marker
SHA-2563332a41e33d1e131bfbbd64a2e664f763f81beb28347753066558d0c87bd408a
MaleculeH(Po)Md(He)

Evidence

Python unittest import tests.py · lines 10–29
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
Python getattr dynamic attribute lookup tests.py · lines 135–147
135:34…
136 'number',
137 ):
138 self.assertIs(getattr(source, attr),
139 getattr(message, attr))
140
⋯7 lines
References a public code-forge URL tests.py · lines 159–164
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 …
Python unittest TestCase marker tests.py · lines 264–281
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
Module assigns a no-arg call message.py · lines 10–28
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

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.