def testEncodingDecoding(self):
     self.myRSA = Cryptography.RSA()
     self.assertEqual(self.myRSA.decryption(self.myRSA.encryption(651651)),
                      651651, "RSA doesnt work")
 def testCoprime(self):
     self.myRSA = Cryptography.RSA()
     self.assertEqual(self.myRSA.e * self.myRSA.d % self.myRSA.fiFunction(),
                      1, "not coprime!")