This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3460 from diox/iarc-v2-translations
Add texts for IARC mappings (bug 1228364)
- Loading branch information
Showing
6 changed files
with
121 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from nose.tools import ok_ | ||
|
||
import mkt.site.tests | ||
|
||
from mkt.constants.iarc_mappings import ( | ||
HUMAN_READABLE_DESCS_AND_INTERACTIVES, REVERSE_DESCS, REVERSE_DESCS_V2, | ||
REVERSE_INTERACTIVES, REVERSE_INTERACTIVES_V2) | ||
|
||
|
||
class TestIARCMappings(mkt.site.tests.TestCase): | ||
|
||
def test_all_human_readable_strings_are_present(self): | ||
for key in REVERSE_DESCS: | ||
ok_(key in HUMAN_READABLE_DESCS_AND_INTERACTIVES) | ||
for key in REVERSE_DESCS_V2: | ||
ok_(key in HUMAN_READABLE_DESCS_AND_INTERACTIVES) | ||
for key in REVERSE_INTERACTIVES: | ||
ok_(key in HUMAN_READABLE_DESCS_AND_INTERACTIVES) | ||
for key in REVERSE_INTERACTIVES_V2: | ||
ok_(key in HUMAN_READABLE_DESCS_AND_INTERACTIVES) | ||
for value in HUMAN_READABLE_DESCS_AND_INTERACTIVES.values(): | ||
ok_('__proxy__' not in unicode(value)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters