Patchwork [2,of,2] tests: add more doctests for check-translation deprecated

login
register
mail settings
Submitter timeless@mozdev.org
Date Sept. 18, 2015, 1:23 a.m.
Message ID <c6b4d1c28cead0ef18f6.1442539408@waste.org>
Download mbox | patch
Permalink /patch/10537/
State Accepted
Headers show

Comments

timeless@mozdev.org - Sept. 18, 2015, 1:23 a.m.
# HG changeset patch
# User timeless@mozdev.org
# Date 1442539235 14400
#      Thu Sep 17 21:20:35 2015 -0400
# Node ID c6b4d1c28cead0ef18f6c82b1e2dc045f3c656a5
# Parent  9d942e7b8147695179a54565c934809b9b190c09
tests: add more doctests for check-translation deprecated
Pierre-Yves David - Sept. 18, 2015, 9:51 p.m.
On 09/17/2015 06:23 PM, timeless@mozdev.org wrote:
> # HG changeset patch
> # User timeless@mozdev.org
> # Date 1442539235 14400
> #      Thu Sep 17 21:20:35 2015 -0400
> # Node ID c6b4d1c28cead0ef18f6c82b1e2dc045f3c656a5
> # Parent  9d942e7b8147695179a54565c934809b9b190c09
> tests: add more doctests for check-translation deprecated

pushed to the clowncopter, thanks

Patch

diff --git a/i18n/check-translation.py b/i18n/check-translation.py
--- a/i18n/check-translation.py
+++ b/i18n/check-translation.py
@@ -85,9 +85,16 @@ 
     >>> deprecatedsetup([ped])
     >>> pe = polib.POEntry(
     ...     msgid = 'Something (DEPRECATED)',
+    ...     msgstr= 'something (DEPRECATED)')
+    >>> match(deprecated, pe)
+    True
+    >>> for e in deprecated(pe): print e
+    >>> pe = polib.POEntry(
+    ...     msgid = 'Something (DEPRECATED)',
     ...     msgstr= 'something (DETACERPED)')
     >>> match(deprecated, pe)
     True
+    >>> for e in deprecated(pe): print e
     >>> pe = polib.POEntry(
     ...     msgid = 'Something (DEPRECATED)',
     ...     msgstr= 'something')