def test_encrypt(self): expected = " CTgF#b!" actual = utils.encrypt('lgs413', [0,1]) self.assertEqual(expected, actual) expected = "!S;|\\M&3" actual = utils.encrypt('lgs413', [1,19]) self.assertEqual(expected, actual) expected = ",P2GzBT1" actual = utils.encrypt('lgs413', [12,17]) self.assertEqual(expected, actual)
def fed_id(self, value): self.federated_id = encrypt(value)