def xpath_contains_function(self, xpath, function):
        if function.argument_types() not in (['STRING'], ['IDENT']):
            raise ExpressionError(
                "Expected a single string or ident for :contains(), got %r" % (
                    function.arguments,))

        value = self.xpath_literal(function.arguments[0].value)
        xpath.add_post_condition('contains(., %s)' % value)
        return xpath
:py:obj:`Context.set_cipher_list` raises :py:obj:`TypeError` when
dataset/ETHPy150Open gawel/pyquery/pyquery/cssselectpatch.py/JQueryTranslator.xpath_contains_function--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pyopenssl/OpenSSL/test/test_ssl.py/ContextTests.test_set_cipher_list_wrong_args