def test_translation_override(self):
        en_conn = self.create_lang_connection('1000000000', 'en')
        es_conn = self.create_lang_connection('1000000001', 'es')
        # both contacts text in to RapidSMS
        self.receive('lang-hello', en_conn)  # English contact
        self.receive('lang-hello', es_conn)  # Spanish contact
        # response should be translated as expected
        self.assertEqual(len(self.outbound), 2)
        self.assertEqual(self.outbound[0].text, 'hello')
        self.assertEqual(self.outbound[1].text, 'hola')
Message should be translated to the contact's preference.
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/tests/translation/tests.py/TranslationRoutingTest.test_translation_override