'Test strings that are as long as the charseq capacity'

def test_py_argument_char_seq_near_overflow(self):

    pyfunc = set_charseq
    rectype = numpy_support.from_dtype(recordwithcharseq)
    cres = compile_isolated(pyfunc, (rectype[:], types.intp, rectype.typeof('n')))
    cfunc = cres.entry_point
    cs_near_overflow = 'abcde'
    self.assertEqual(len(cs_near_overflow), recordwithcharseq['n'].itemsize)
    cfunc(self.nbsample1d, 0, cs_near_overflow)
    self.assertEqual(self.nbsample1d[0]['n'].decode('ascii'), cs_near_overflow)
    np.testing.assert_equal(self.refsample1d[1:], self.nbsample1d[1:])
