def test_strings(self): bytes = TCMallocNative.getBytesUsed() for ix in range(100): s = str(ix) * 1000000 s2 = TCMallocNative.returnStringArg(s) self.assertEqual(s, s2) finalBytes = TCMallocNative.getBytesUsed() self.assertTrue(finalBytes < bytes + 10000000)