Actually, it also allows a custom error message, which might be useful here, since you are running different tests in one function:

```python
np.testing.assert_equal(r1 == r2, True, "Equal regionprops objects are not equal.")
np.testing.assert_equal(r1 != r3, True, "Different regionprops objects test as equal.")
```

Also, I would do the following:

```python
arr[:25, :25] = 1
arr[-25:, -25:] = 2
arr[50:, 50:] = 3

r1, r2, r3 = regionprops(arr)
```

Clearer. I just looked at the code though, and this fails because of the `coords` property, which is not translation invariant. (Any others?) @ahojnnes @stefanv What would be the desired behavior in this case?