|
10 | 10 |
|
11 | 11 | # TODO:
|
12 | 12 | # - Add new tests, for example for "dgettext"
|
13 |
| -# - Remove dummy tests, for example testing for single and double quotes |
14 |
| -# has no sense, it would have if we were testing a parser (i.e. pygettext) |
15 | 13 | # - Tests should have only one assert.
|
16 | 14 |
|
17 | 15 | GNU_MO_DATA = b'''\
|
@@ -175,30 +173,6 @@ def test_some_translations_with_context(self):
|
175 | 173 | eq(pgettext('my other context', 'nudge nudge'),
|
176 | 174 | 'wink wink (in "my other context")')
|
177 | 175 |
|
178 |
| - def test_double_quotes(self): |
179 |
| - eq = self.assertEqual |
180 |
| - # double quotes |
181 |
| - eq(_("albatross"), 'albatross') |
182 |
| - eq(_("mullusk"), 'bacon') |
183 |
| - eq(_(r"Raymond Luxury Yach-t"), 'Throatwobbler Mangrove') |
184 |
| - eq(_(r"nudge nudge"), 'wink wink') |
185 |
| - |
186 |
| - def test_triple_single_quotes(self): |
187 |
| - eq = self.assertEqual |
188 |
| - # triple single quotes |
189 |
| - eq(_('''albatross'''), 'albatross') |
190 |
| - eq(_('''mullusk'''), 'bacon') |
191 |
| - eq(_(r'''Raymond Luxury Yach-t'''), 'Throatwobbler Mangrove') |
192 |
| - eq(_(r'''nudge nudge'''), 'wink wink') |
193 |
| - |
194 |
| - def test_triple_double_quotes(self): |
195 |
| - eq = self.assertEqual |
196 |
| - # triple double quotes |
197 |
| - eq(_("""albatross"""), 'albatross') |
198 |
| - eq(_("""mullusk"""), 'bacon') |
199 |
| - eq(_(r"""Raymond Luxury Yach-t"""), 'Throatwobbler Mangrove') |
200 |
| - eq(_(r"""nudge nudge"""), 'wink wink') |
201 |
| - |
202 | 176 | def test_multiline_strings(self):
|
203 | 177 | eq = self.assertEqual
|
204 | 178 | # multiline strings
|
@@ -285,30 +259,6 @@ def test_some_translations_with_context_and_domain(self):
|
285 | 259 | eq(gettext.dpgettext('gettext', 'my other context', 'nudge nudge'),
|
286 | 260 | 'wink wink (in "my other context")')
|
287 | 261 |
|
288 |
| - def test_double_quotes(self): |
289 |
| - eq = self.assertEqual |
290 |
| - # double quotes |
291 |
| - eq(self._("albatross"), 'albatross') |
292 |
| - eq(self._("mullusk"), 'bacon') |
293 |
| - eq(self._(r"Raymond Luxury Yach-t"), 'Throatwobbler Mangrove') |
294 |
| - eq(self._(r"nudge nudge"), 'wink wink') |
295 |
| - |
296 |
| - def test_triple_single_quotes(self): |
297 |
| - eq = self.assertEqual |
298 |
| - # triple single quotes |
299 |
| - eq(self._('''albatross'''), 'albatross') |
300 |
| - eq(self._('''mullusk'''), 'bacon') |
301 |
| - eq(self._(r'''Raymond Luxury Yach-t'''), 'Throatwobbler Mangrove') |
302 |
| - eq(self._(r'''nudge nudge'''), 'wink wink') |
303 |
| - |
304 |
| - def test_triple_double_quotes(self): |
305 |
| - eq = self.assertEqual |
306 |
| - # triple double quotes |
307 |
| - eq(self._("""albatross"""), 'albatross') |
308 |
| - eq(self._("""mullusk"""), 'bacon') |
309 |
| - eq(self._(r"""Raymond Luxury Yach-t"""), 'Throatwobbler Mangrove') |
310 |
| - eq(self._(r"""nudge nudge"""), 'wink wink') |
311 |
| - |
312 | 262 | def test_multiline_strings(self):
|
313 | 263 | eq = self.assertEqual
|
314 | 264 | # multiline strings
|
|
0 commit comments