def t(inp): self.assertEqual(uuid.fromString(uuid.toString(inp)), inp)
def t(inp, expected): self.assertEqual(uuid.toString(inp), expected) self.assertEqual(uuid.fromString(expected), inp)