← Back to team overview

launchpad-dev team mailing list archive

Re: Another thing I'd like in our test suite

 

On Tue, Aug 16, 2011 at 3:46 PM, Jeroen Vermeulen <jtv@xxxxxxxxxxxxx> wrote:
> Since my last thread of this kind led to such great news, I'm just going to
> keep doing it.
>
> Wouldn't it be great if our test suite automatically ran each of our utility
> interfaces through:
>
>    self.assertProvides(
>        getUtility(ISomethingSource), ISomethingSource)
>
> It's a pain to have to remember doing that for every utility, but doing it
> quickly checks for a wide range of possible mistakes.
>

You don't have to remember if you are doing TDD and it's testing a
behaviour worth having.

That said, ZCA probably ought to do a check like that on registration.

jml


Follow ups

References