Cosmetic: it would be better to split this as follows:
<pre>
assert_array_equal(gsarray.get_data()['iter_id'],
                                  gsarray2.get_data()['iter_id'])
</pre>

Also for the lines below.