def test_TSO_locale(self):

        tso = self.getCopy()
        for value in TwitterSearchOrder.iso_6391:
            tso.set_locale(value)
            cor = '%s&locale=%s' % (self.__tso.create_search_url(), value)
            self.assertEqualQuery(tso.create_search_url(), cor)

            # wrong values
            wrong_values = [ '', 'dee', 'q', 'xz', 32, 1.0, [], {} ]
            for value in wrong_values:
                try:
                    tso.set_locale(value)
                    self.assertTrue(False, "Not raising exception for %s" % value)
                except TwitterSearchException as e:
                    self.assertEqual(e.code, 1002, "Wrong exception code")
Return a month name as a table row.
dataset/ETHPy150Open ckoepp/TwitterSearch/tests/test_tso.py/TwitterSearchOrderTest.test_TSO_locale--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/calendar.py/HTMLCalendar.formatmonthname