On Sunday, March 13, 2011 10:58:10 pm Kenneth Gonsalves wrote:
> On Sun, 2011-03-13 at 22:40 -0700, Mike Ramirez wrote:
> > > I know it is there - but it is half way down the page. My point is
> >
> > that
> >
> > > it should be at the top of the page. For what it's worth I filed a
> > > ticket.
On Sunday, March 13, 2011 10:40:51 pm you wrote:
> With this all in mind, I think they do enough to say use 'django.testing',
> without having it specifically marked at the start.
>
> But it could possibly benefit from being two pages, one an "overview" and
> one page for "django.testing"
>
>
>
On Sun, 2011-03-13 at 22:40 -0700, Mike Ramirez wrote:
> > I know it is there - but it is half way down the page. My point is
> that
> > it should be at the top of the page. For what it's worth I filed a
> > ticket.
>
> I've een wondering about this myself, but I'm not sure that it's in
> the wron
On Sunday, March 13, 2011 09:58:18 pm Kenneth Gonsalves wrote:
> On Sat, 2011-03-12 at 00:12 -0800, Mike Ramirez wrote:
> > On Friday, March 11, 2011 11:37:38 pm Kenneth Gonsalves wrote:
> > > and all is well. I think the dev docs need to be clearer on this
> >
> > point
> >
> > > and mention thi
On Sat, 2011-03-12 at 00:12 -0800, Mike Ramirez wrote:
> On Friday, March 11, 2011 11:37:38 pm Kenneth Gonsalves wrote:
>
> > and all is well. I think the dev docs need to be clearer on this
> point
> > and mention this at the outset. After all they *are* dev docs.
>
> http://docs.djangoproject.c
Hi,
As far I can tell from the documentation, to use Django's extended
TestCase, you should use django.test.TestCase [1]. Using
django.utils.unittest allows you to benefit from python 2.7 unittest2
library, [2]
Regards,
[1]
http://docs.djangoproject.com/en/dev/topics/testing/#django.test.T
On Friday, March 11, 2011 11:37:38 pm Kenneth Gonsalves wrote:
> and all is well. I think the dev docs need to be clearer on this point
> and mention this at the outset. After all they *are* dev docs.
http://docs.djangoproject.com/en/1.2/topics/testing/#testcase
Mike
--
Would that my hand were
On Fri, 2011-03-11 at 23:23 -0800, Mike Ramirez wrote:
> On Friday, March 11, 2011 11:21:02 pm you wrote:
> > The problem here is that assertContains is not part of
> unittest/unittest2.
> >
> > It's defined in TransactionTestCase in django.test, which extends
> > unittest2.TestCase and adds in as
On Friday, March 11, 2011 11:21:02 pm you wrote:
> The problem here is that assertContains is not part of unittest/unittest2.
>
> It's defined in TransactionTestCase in django.test, which extends
> unittest2.TestCase and adds in assertContains, assertNotContains,
> assetFormError, basically django
On Friday, March 11, 2011 11:11:21 pm Kenneth Gonsalves wrote:
> On Fri, 2011-03-11 at 23:04 -0800, Mike Ramirez wrote:
> > > from django.utils import unittest
> >
> > from django.test import TestCase
> >
> > the stuff in utils.unittest is unittest2 stuff if you're using python
> > <2.7
> > (unit
On Fri, 2011-03-11 at 23:04 -0800, Mike Ramirez wrote:
> >
> > from django.utils import unittest
>
> from django.test import TestCase
>
> the stuff in utils.unittest is unittest2 stuff if you're using python
> <2.7
> (unittest2 is part of 2.7 now as unittest).
I am using 2.6, but according to
On Friday, March 11, 2011 11:04:39 pm Mike Ramirez wrote:
> assertContains is a django specific test and located in test.TestCase with
> the others (you can find TransactionTestCase in there also).
>
I should also add, TransactionTestCase is the base for TestCase and TestCase
is really a patch
On Friday, March 11, 2011 10:19:27 pm Kenneth Gonsalves wrote:
> hi,
>
> I am trying to run a test using assertContains, but get this error:
>
> AttributeError: 'SourceTestCase' object has no attribute
> 'assertContains'
>
> my code:
>
> from django.utils import unittest
from django.test impor
hi,
I am trying to run a test using assertContains, but get this error:
AttributeError: 'SourceTestCase' object has no attribute
'assertContains'
my code:
from django.utils import unittest
from incident.models import Source
from django.test.client import Client
class SourceTestCase(unittest.
14 matches
Mail list logo