Good catch. That was how I wrote both tests but it turns out that the two xblocks don't compare true for ==. I changed the top one but missed that it was there twice.

Is there a good Python way to compare that they are the same xblocks even if they are different instances? Is comparing the location the right way to do this?