def test_decrypt(self): expected = "lgs413" actual = utils.decrypt(" CTgF#b!") self.assertEqual(expected, actual) expected = "lgs413" actual = utils.decrypt("!S;|\\M&3") self.assertEqual(expected, actual) expected = "lgs413" actual = utils.decrypt(",P2GzBT1") self.assertEqual(expected, actual)
def fed_id(self): if hasattr(self, "federated_id"): return decrypt(self._fed_id) return None