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

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

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

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

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

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, > >> > >>

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

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

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

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: