Maybe this should be broken up into tests for RSAPrivateKey and tests for RSAPublicKey? Then maybe you also use parametrize?