'Test the to_language function'

def test_to_language(self):

    from django.utils.translation.trans_real import to_language
    self.assertEqual(to_language('en_US'), 'en-us')
    self.assertEqual(to_language('sr_Lat'), 'sr-lat')
