def testTimeIsFuzzed(self): data = ["Jul 18 11:43:25 localhost xentpm[8593]: The TPM is not pwned"] fuzz = TxtLogObfuscator(data) self.assertEqual([ """Jul 18 XX:XX:XX localhost xentpm[8593]: The """ """TPM is not pwned""" ], fuzz.fuzzTimes())
def testSingleDigitDateIsFuzzed(self): data = ["Aug 2 11:43:25 localhost xentpm[8593]: The TPM is not pwned"] fuzz = TxtLogObfuscator(data) self.assertEqual([ """XXX XX 11:43:25 localhost xentpm[8593]: The """ """TPM is not pwned""" ], fuzz.fuzzDates())
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 testTimeIsFuzzed(self): data = ["Jul 18 11:43:25 localhost xentpm[8593]: The TPM is not pwned"] fuzz = TxtLogObfuscator(data) self.assertEqual(["""Jul 18 XX:XX:XX localhost xentpm[8593]: The """ """TPM is not pwned"""], fuzz.fuzzTimes())
def testSingleDigitDateIsFuzzed(self): data = ["Aug 2 11:43:25 localhost xentpm[8593]: The TPM is not pwned"] fuzz = TxtLogObfuscator(data) self.assertEqual(["""XXX XX 11:43:25 localhost xentpm[8593]: The """ """TPM is not pwned"""], fuzz.fuzzDates())
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())