← Back to team overview

launchpad-dev team mailing list archive

Re: Lighter tests with FakeLibrarian

 

On Wed, Aug 25, 2010 at 7:28 AM, Aaron Bentley <aaron@xxxxxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 08/24/2010 03:07 PM, Robert Collins wrote:
>> Awesome Jeroen, thank you for doing this.
>>
>> I have a suggestion for a small minor incremental improvement.
>>
>> It would be nice to be able to use
>> self.installFixture(FakeLibrarian())
>
> Nah, it would be nice to be able to use
>
> self.useContext(FakeLibrarian())

I think both would be useful. I like context managers too, but
sometimes (perhaps not this case) its easier to express with a little
regular code in the middle.

-Rob



Follow ups

References