def test_partition(self):
        assert evalpy('"".partition("-")') == "[ '', '', '' ]"
        assert evalpy('"abc".partition("-")') == "[ 'abc', '', '' ]"
        assert evalpy('"-".partition("-")') == "[ '', '-', '' ]"
        assert evalpy('"abc-".partition("-")') == "[ 'abc', '-', '' ]"
        assert evalpy('"-def".partition("-")') == "[ '', '-', 'def' ]"
        assert evalpy('"abc-def".partition("-")') == "[ 'abc', '-', 'def' ]"
        
        assert evalpy('try:\n  "aa".partition("")\nexcept Exception as e:\n  e') in 'ValueError'
dataset/ETHPy150Open zoofIO/flexx/flexx/pyscript/tests/test_parser3.py/TestStrMethods.test_partition/swapped operands of `in`