Esempio n. 1
0
 def test_valid_encode(self):
     """
     Test case to verify the proper encoding of messages: taking a character
     sequence and converting that to binary-encoded words. Does not use encryption.
     """
     message = pyspamsteg.encode(test_pt00)
     self.assertEqual(pyspamsteg.decode(message), test_pt00)
Esempio n. 2
0
 def test_valid_decode(self):
     """
     Test to ensure the decoding of messages works. Decoding is the process of
     taking the binary-encoded words and transforming them into a character
     sequence. No encryption is used here.
     """
     self.assertEqual(pyspamsteg.decode(test_ct00), test_pt00)