Re: Django test documentation example not respecting xUnit convention

2011-09-21 Thread schinckel
Yeah, I saw that later when I wrote some tests. I'm sure I saw the style of failure message with some django app tests I wrote ages ago: maybe my brain has failed that test and it was a ruby unit test. Matt. -- You received this message because you are subscribed to the Google Groups "Django

Re: Django test documentation example not respecting xUnit convention

2011-09-21 Thread Daniel Moisset
On Wed, Sep 21, 2011 at 2:13 AM, schinckel wrote: > It isn't 'enforced' by Python at a language level, but as dmoisset stated, > it makes the failure messages actually make sense: > > "Expected 'foo', got 'bar'". > > Actually that's not the message in Python's unittest (but I've seen messages

Re: Django test documentation example not respecting xUnit convention

2011-09-21 Thread Łukasz Rekucki
On 21 September 2011 07:13, schinckel wrote: > It isn't 'enforced' by Python at a language level, but as dmoisset stated, > it makes the failure messages actually make sense: >     "Expected 'foo', got 'bar'". > (paraphrasing failure message: don't have any failing tests to look at right > now. YA

Re: Django test documentation example not respecting xUnit convention

2011-09-21 Thread Łukasz Rekucki
On 21 September 2011 02:01, Russell Keith-Magee wrote: > > For what it's worth, I also think the "convention" is bass ackwards... > you write "if variable == value", but you write "assertEqual(value, > variable)"? Where's the consistency in that? > My guess is that the choice is somehow connected

Re: Django test documentation example not respecting xUnit convention

2011-09-20 Thread schinckel
It isn't 'enforced' by Python at a language level, but as dmoisset stated, it makes the failure messages actually make sense: "Expected 'foo', got 'bar'". (paraphrasing failure message: don't have any failing tests to look at right now. YAY! :) Matt. > -- You received this message becau

Re: Django test documentation example not respecting xUnit convention

2011-09-20 Thread Alex Gaynor
On Tue, Sep 20, 2011 at 8:01 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Tue, Sep 20, 2011 at 8:18 PM, Daniel Moisset > wrote: > > > > > > On Tue, Sep 20, 2011 at 8:23 AM, Florian Apolloner < > f.apollo...@gmail.com> > > wrote: > >> > >> Hi, > >> > >> a) Does this matter at all

Re: Django test documentation example not respecting xUnit convention

2011-09-20 Thread Russell Keith-Magee
On Tue, Sep 20, 2011 at 8:18 PM, Daniel Moisset wrote: > > > On Tue, Sep 20, 2011 at 8:23 AM, Florian Apolloner > wrote: >> >> Hi, >> >> a) Does this matter at all? I mean what's the difference? You ask if they >> are equal and if not you get an error ;) > > Other xUnit framework actually show an

Re: Django test documentation example not respecting xUnit convention

2011-09-20 Thread Daniel Moisset
On Tue, Sep 20, 2011 at 8:23 AM, Florian Apolloner wrote: > Hi, > > a) Does this matter at all? I mean what's the difference? You ask if they > are equal and if not you get an error ;) > Other xUnit framework actually show an error message explicit about it, saying "expected 'foo', actual 'bar'".

Re: Django test documentation example not respecting xUnit convention

2011-09-20 Thread Calvin Spealman
On Sep 20, 2011 5:18 AM, "James Pic" wrote: > > Hello everybody, > > Sorry if this topic has already been brought, I asked about it on IRC but nobody answered. > > Being a old user of xUnit patterns in several languages, i just figured that there might be a mistake in django testing documentation

Re: Django test documentation example not respecting xUnit convention

2011-09-20 Thread Florian Apolloner
Hi, a) Does this matter at all? I mean what's the difference? You ask if they are equal and if not you get an error ;) b) I think it's the wrong mailing list for design decisions python took… Cheers, Florian -- You received this message because you are subscribed to the Google Groups "Django

Django test documentation example not respecting xUnit convention

2011-09-20 Thread James Pic
Hello everybody, Sorry if this topic has already been brought, I asked about it on IRC but nobody answered. Being a old user of xUnit patterns in several languages, i just figured that there might be a mistake in django testing documentation example. The example is: self.assertEqual(self.lion.sp