'Check that every line in arr1 is only once in arr2'

def assert_unordered_allclose(self, arr1, arr2, rtol=1e-07):

    assert_equal(arr1.shape, arr2.shape)
    truths = np.zeros((arr1.shape[0],), dtype=bool)
    for l1 in arr1:
        indexes = np.where((abs((arr2 - l1)) < rtol).all(axis=1))[0]
        assert_equal(indexes.shape, (1,))
        truths[indexes[0]] = True
    assert_(truths.all())
