Personally, I use lxml to check the presence of HTML element based on
xpath. Here is an exemple of how I do it:
from django.core.urlresolvers import reverse
from django.test import TestCase
from lxml import etree
class UserUrlTestCase(TestCase):
""" Test for the user app "
In general, you would request the page and inspect the rendered output.
https://docs.djangoproject.com/en/1.10/topics/testing/tools/#testing-responses
-James
On Wed, Oct 12, 2016 at 12:17 PM, wrote:
> How to Unit testing in django for django template
>
> please any one help me???
>
> --
>
On Fri, Sep 17, 2010 at 10:58:19AM +0530, girish shabadimath wrote:
> hi Paul,
>
> thanks for d reply,,,but im new to python n django,,,dint do ne python unit
> testing before,,can u plz give me some links or hints to start with...
http://docs.djangoproject.com/en/1.2/topics/testing/
has plenty
On Fri, Sep 17, 2010 at 10:58:19AM +0530, girish shabadimath wrote:
> hi Paul,
>
> thanks for d reply,,,but im new to python n django,,,dint do ne python unit
> testing before,,can u plz give me some links or hints to start with...
http://docs.djangoproject.com/en/1.2/topics/testing/
has plenty
Hi Girish,
On 17 Sep 2010, at 06:28, girish shabadimath wrote:
> thanks for d reply,,,but im new to python n django,,,dint do ne python unit
> testing before,,can u plz give me some links or hints to start with...
IN that case I'd recommend this book:
http://www.amazon.com/Django-Testing-Deb
hi Paul,
thanks for d reply,,,but im new to python n django,,,dint do ne python unit
testing before,,can u plz give me some links or hints to start with...
On Thu, Sep 16, 2010 at 8:09 PM, Paul Winkler wrote:
> On Sep 16, 10:11 am, girish shabadimath
> wrote:
> > thanks for reply,
> > actually
On Sep 16, 10:11 am, girish shabadimath
wrote:
> thanks for reply,
> actually i used unit test to test urls and other view functions,,,there is a
> module called Client() in django which acts as a browser to test urls,,,
>
> my problem is ,i want to test other methods in my project,,, how to do
>
thanks for reply,
actually i used unit test to test urls and other view functions,,,there is a
module called Client() in django which acts as a browser to test urls,,,
my problem is ,i want to test other methods in my project,,, how to do
so, without making use of django's test client..?..
O
You can use Python's unittest module to test any Python code (including Django
code).
What is it about Django's test client or TestCase class that is a problem for
you?
Shawn
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gr
I have been test it, but it's seem not to be clear to involve into the real
project. Could you let me know the other example?
On Tue, Oct 6, 2009 at 6:01 PM, Daniel Roseman wrote:
>
> On Oct 6, 11:55 am, veasna bunhor wrote:
> > Do you know how to use unit testing in django ? Could you please gi
On Oct 6, 11:55 am, veasna bunhor wrote:
> Do you know how to use unit testing in django ? Could you please give me an
> example?
>
> Thanks in advanced,
http://docs.djangoproject.com/en/dev/topics/testing/
--
DR
--~--~-~--~~~---~--~~
You received this message bec
On Tue, Oct 6, 2009 at 6:55 PM, veasna bunhor wrote:
> Do you know how to use unit testing in django ? Could you please give me an
> example?
There's a link to docs labled "Testing: Overview" on the homepage of
the documentation.
http://docs.djangoproject.com/en/dev/topics/testing/#topics-testi
12 matches
Mail list logo