[openstack-dev] [murano] Fix order of arguments in assertEqual

Ian Wienand iwienand at redhat.com
Tue Sep 29 01:09:38 UTC 2015


On 09/24/2015 08:18 PM, Andrey Kurilin wrote:
> I agree that wrong order of arguments misleads while debugging errors, BUT
> how we can prevent regression?

Spell it out and use keyword args?

   assertEqual(expected="foo", observed=...)

is pretty hard to mess up

-i



More information about the OpenStack-dev mailing list