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

2015-09-28 Thread Ken'ichi Ohmichi
Hi 2015-09-29 10:09 GMT+09:00 Ian Wienand : > 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=...) >

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

2015-09-28 Thread Ian Wienand
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 ___

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

2015-09-24 Thread Andrey Kurilin
Kekane > > -Original Message- > From: Bulat Gaifullin [mailto:bgaiful...@mirantis.com] > Sent: 24 September 2015 13:29 > To: OpenStack Development Mailing List (not for usage questions) > Subject: Re: [openstack-dev] [murano] Fix order of arguments in assertEqual >

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

2015-09-24 Thread Kekane, Abhishek
(not for usage questions) Subject: Re: [openstack-dev] [murano] Fix order of arguments in assertEqual +1 > On 24 Sep 2015, at 10:45, Tetiana Lashchova wrote: > > Hi folks! > > Some tests in murano code use incorrect order of arguments in assertEqual. > The correct order expecte

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

2015-09-24 Thread Ekaterina Chernova
Hi! Good catch. Have no objections for fixing it right now. Regards, Kate. On Thu, Sep 24, 2015 at 10:58 AM, Bulat Gaifullin wrote: > +1 > > > On 24 Sep 2015, at 10:45, Tetiana Lashchova > wrote: > > > > Hi folks! > > > > Some tests in murano code use incorrect order of arguments in > assert

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

2015-09-24 Thread Bulat Gaifullin
+1 > On 24 Sep 2015, at 10:45, Tetiana Lashchova wrote: > > Hi folks! > > Some tests in murano code use incorrect order of arguments in assertEqual. > The correct order expected by the testtools is > > def assertEqual(self, expected, observed, message=''): > """Assert that