Commit 5bc427e2 by Clinton Blackburn Committed by GitHub

Added test for language with no subtag/dialect (#186)

ECOM-5076
parent fa660e33
......@@ -20,3 +20,6 @@ class LanguageTagTests(TestCase):
""" Verify the property returns the macrolanguage for a given LanguageTag. """
en_us = LanguageTag(code='en-us', name='English - United States')
self.assertEqual(en_us.macrolanguage, 'English')
sw = LanguageTag(code='sw', name='Swahili')
self.assertEqual(sw.macrolanguage, 'Swahili')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment