summaryrefslogtreecommitdiff
path: root/horizon/test/unit/utils/test_babel_extract_angular.py
diff options
context:
space:
mode:
Diffstat (limited to 'horizon/test/unit/utils/test_babel_extract_angular.py')
-rw-r--r--horizon/test/unit/utils/test_babel_extract_angular.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/horizon/test/unit/utils/test_babel_extract_angular.py b/horizon/test/unit/utils/test_babel_extract_angular.py
index f09b62879..7aacf8ad2 100644
--- a/horizon/test/unit/utils/test_babel_extract_angular.py
+++ b/horizon/test/unit/utils/test_babel_extract_angular.py
@@ -135,6 +135,15 @@ class ExtractAngularTestCase(test.TestCase):
<img alt="{$'some other thing'$}">
<p>{$'"it\\'s awesome"'|translate$}</p>
<p>{$"oh \\"hello\\" there"|translate$}</p>
+ <img alt="{$::'hello colon1' | translate $}">
+ <p>{$ ::'hello colon2' |translate$}</p>
+ <p>{$ :: 'hello colon3'| translate$}</p>
+ <img alt="something {$::'hello colon4'|translate$} something
+ {$ ::'hello colon5' | translate$}">
+ <img alt="{::$expr()|translate$}">
+ <img alt="{$::'some other thing'$}">
+ <p>{$:: '"it\\'s awesome"'|translate$}</p>
+ <p>{$ :: "oh \\"hello\\" there" | translate$}</p>
"""
)
@@ -147,6 +156,13 @@ class ExtractAngularTestCase(test.TestCase):
(4, u'gettext', 'hello world4', []),
(8, u'gettext', '"it\\\'s awesome"', []),
(9, u'gettext', 'oh \\"hello\\" there', []),
+ (10, u'gettext', u'hello colon1', []),
+ (11, u'gettext', u'hello colon2', []),
+ (12, u'gettext', u'hello colon3', []),
+ (13, u'gettext', u'hello colon4', []),
+ (13, u'gettext', u'hello colon5', []),
+ (17, u'gettext', u'"it\\\'s awesome"', []),
+ (18, u'gettext', u'oh \\"hello\\" there', []),
],
messages)