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