'Tests the to_locale function and the special case of Serbian Latin
(refs #12230 and r11299)'

def test_to_locale(self):

    self.assertEqual(to_locale(u'en-us'), u'en_US')
    self.assertEqual(to_locale(u'sr-lat'), u'sr_Lat')
