They are keys known to pass our validations. They provide known good state 
for the rest of the test to work from. I find it makes the test more 
readable but combined with the vector test it doesn't add much to what's 
actually being checked.


On 7 February 2014 18:20:53 David Reid <notifications@github.com> wrote:

> > +        assert skey.key_size
> > +        assert skey.key_size == pkey.key_size
> > +        assert skey.key_size == pkey2.key_size
> > +
> > +        assert skey.p * skey.q == skey.modulus
> > +
> > +    def test_invalid_argument_types(self):
> > +        with pytest.raises(TypeError):
> > +            rsa.RSAPrivateKey(None, None, None, None, None)
> > +
> > +        with pytest.raises(TypeError):
> > +            rsa.RSAPublicKey(None, None)
> > +
> > +    def test_invalid_argument_values(self):
> > +        # tiny example key
> > +        rsa.RSAPrivateKey(3, 5, 14, 7, 15)
>
> Like the RSAPublicKey on L106 I also don't know what this is for.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/pyca/cryptography/pull/559/files#r9548908