@httpretty.activate
    def test_TS_set_supported_languages(self):

        httpretty.register_uri(
                httpretty.GET, self.lang_url,
                body=self.apiAnsweringMachine('tests/mock-data/lang.log'),
                streaming=True,
                status=200,
                content_type='text/json' )

        ts = self.createTS()
        tso = self.createTSO()

        try:
            ts.set_supported_languages(tso)
            self.assertEqual(tso.iso_6391.sort(), [ 'fi', 'da', 'pl', 'hu', 'fa', 'he' ].sort())
        except Exception as e:
            self.assertTrue(False, "An exception was raised: %s" % e)
Tests TwitterSearch.set_supported_languages()
dataset/ETHPy150Open ckoepp/TwitterSearch/tests/test_ts.py/TwitterSearchTest.test_TS_set_supported_languages