'Test loading a PEM file from disk.'

def test_load_from_disk(self):

    fname = os.path.join(os.path.dirname(__file__), 'private.pem')
    with open(fname, mode='rb') as privatefile:
        keydata = privatefile.read()
    privkey = rsa.key.PrivateKey.load_pkcs1(keydata)
    self.assertEqual(15945948582725241569L, privkey.p)
    self.assertEqual(14617195220284816877L, privkey.q)
