'Test with two arrays of the same type'

def _test_get_two_equal(self, pyfunc):

    rec = numpy_support.from_dtype(recordtype)
    cfunc = self.get_cfunc(pyfunc, (rec[:], rec[:], types.intp))
    for i in range(self.refsample1d.size):
        self.assertEqual(pyfunc(self.refsample1d, self.refsample1d3, i), cfunc(self.nbsample1d, self.nbsample1d3, i))
