This is actually because I changed the argument order and missed this one :-)


On 10 February 2014 18:09:51 David Reid <notifications@github.com> wrote:

> > @@ -24,6 +24,10 @@
> >   class TestRSA(object):
> > +    def test_generate_with_bad_backend(self):
> > +        with pytest.raises(AttributeError):
> > +            rsa.RSAPrivateKey.generate(object(), 65537, 2048)
>
> I would have written this as
>
> ```python
> no_rsa_backend = object()
> rsa.RSAPrivateKey.generate(
>     public_exponent=65537,
>     key_size=2048,
>     backend=no_rsa_backend
> )
> ```
>
> As opposed to just transposing the arguments such that they are no longer 
> valid.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/pyca/cryptography/pull/582/files#r9594527