[PATCH 2 of 2] tests: add more doctests for check-translation deprecated
timeless at mozdev.org
timeless at mozdev.org
Thu Sep 17 20:23:28 CDT 2015
# HG changeset patch
# User timeless at 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
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')
More information about the Mercurial-devel
mailing list