def test_index(self):
        # We know that the implementation is basded on find; no need to test all
        assert evalpy('"abcdefgh".index("a")') == '0'
        assert evalpy('"abcdefgh".index("h")') == '7' 
        assert evalpy('"abcdefgh".index("")') == '0'
        assert evalpy('try:\n  "abcdefgh".index("z")\nexcept Exception as e:\n  e') in 'ValueError'
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser3.py/TestStrMethods.test_index/swapped operands of `in`