[openstack-dev] Testtools usage?

Monty Taylor mordred at inaugust.com
Fri Jan 25 00:03:12 UTC 2013

On 01/25/2013 11:01 AM, Robert Collins wrote:
> On 25 January 2013 12:54, Monty Taylor <mordred at inaugust.com> wrote:
>> On 01/25/2013 09:49 AM, Joshua Harlow wrote:
>>> Ok, so would just having testtools use unittest2 work better?
>> Ah. Hrm. Looping in Robert.
> It is a possibility. OTOH then that question can be asked for every
> other base class out there.
> I would say:
>  - if you want to use a unittest2.TestCase only feature:
>   - subclass unittest2.TestCase (use multiple inheritance if you also
> need testtools features).

Hrm. I think for the in-general case for openstack's usage of testtools,
additionally subclassing unittest2 at times is likely heavy-weight.

>   - or file a bug that that feature isn't available in testtools
> (which explicitly supports Python2.6).

How about let's start with a wiki page of suggested usage - and then in
parallel file bugs against testtools about missing bits?


More information about the OpenStack-dev mailing list