def test_TSO_language(self):

        tso = self.getCopy()
        for value in TwitterSearchOrder.iso_6391:
            tso.set_language(value)
            cor = '%s&lang=%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_language(value)
                self.assertTrue(False, "Not raising exception for %s" % value)
            except TwitterSearchException as e:
                self.assertEqual(e.code, 1002, "Wrong exception code")
Tests that updates on static only column work as intended
dataset/ETHPy150Open ckoepp/TwitterSearch/tests/test_tso.py/TwitterSearchOrderTest.test_TSO_language--crossover with--dataset/ETHPy150Open datastax/python-driver/tests/integration/cqlengine/columns/test_static_column.py/TestStaticColumn.test_static_only_updates