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
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
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
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
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
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,
> >>
> >>
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
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
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
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:
10 matches
Mail list logo