The previous xfail was due to an UnboundLocalError so it wasn't even getting to this line to attempt to call the function.  The $ is needed because the function is on self