def METHOD_NAME(self, wallet, tx, pos):
    change_pos = None
    for index, output in enumerate(tx["vout"]):
        info = wallet.getaddressinfo(output["scriptPubKey"]["address"])
        if (info["ismine"] and info["ischange"]):
            change_pos = index
            break
    assert_equal(change_pos, pos)