'Test CharSeq as python wrapper argument'

def test_py_argument_charseq(self):

    pyfunc = set_charseq
    rectype = numpy_support.from_dtype(recordwithcharseq)
    cres = compile_isolated(pyfunc, (rectype[:], types.intp, rectype.typeof('n')))
    cfunc = cres.entry_point
    for i in range(self.refsample1d.size):
        chars = '{0}'.format(hex((i + 10)))
        expected = pyfunc(self.refsample1d, i, chars)
        got = cfunc(self.nbsample1d, i, chars)
        np.testing.assert_equal(self.refsample1d, self.nbsample1d)
