def testThreadIsFuzzed(self): data = ["Jul 18 11:43:25 localhost xentpm[8593]: The TPM is not pwned"] fuzz = TxtLogObfuscator(data) self.assertEqual([ """Jul 18 11:43:25 localhost xentpm[XXXX]: The """ """TPM is not pwned""" ], fuzz.fuzzThreadMarker())
def testThreadIsFuzzed(self): data = ["Jul 18 11:43:25 localhost xentpm[8593]: The TPM is not pwned"] fuzz = TxtLogObfuscator(data) self.assertEqual(["""Jul 18 11:43:25 localhost xentpm[XXXX]: The """ """TPM is not pwned"""], fuzz.fuzzThreadMarker())