Пример #1
0
 def test_valid_message_build(self):
     """
     Test case for the build function. Build is the opposite of read, and the output
     is a properly-formatted message body. Does not use encryption.
     """
     message = pyspamsteg.create(test_pt00)
     self.assertEqual(pyspamsteg.read(message), test_pt00)
Пример #2
0
    def test_build(self):
        """
        Test case to verify proper build and read of a steganograpic message with
        PlayFair encryption.
        """
        message = 'testing pyspamsteg'
        passphrase = 'pyspamsteg'
        
        ct = pyspamsteg.create( message, passphrase )
        pt = pyspamsteg.read( ct, passphrase )

        self.assertEquals( pt, message )