Ludovic, On my project, we have lots of test cases that do a GET or POST and then check the returned HTML. We use the BeautifulSoup HTML parser from our Django tests to avoid the types of errors you're getting with simple string comparisons. I'm not sure if there any pros/cons vs lxml, but it works great for us! --Fred
Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we need no Windows or Gates. On 7/31/16 5:08 PM, Andreas Kuhne
wrote:
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c33014ce-04fa-55ea-2ce3-b082bf2a22e7%40bristle.com. For more options, visit https://groups.google.com/d/optout. |
- Testing if a view have an html element with at least one att... ludovic coues
- Re: Testing if a view have an html element with at leas... Andreas Kuhne
- Re: Testing if a view have an html element with at ... ludovic coues
- Re: Testing if a view have an html element with... Andreas Kuhne
- Re: Testing if a view have an html element ... ludovic coues
- Re: Testing if a view have an html ele... Andreas Kuhne
- Re: Testing if a view have an html... ludovic coues
- Re: Testing if a view have an ... Andreas Kuhne
- Re: Testing if a view have an ... Fred Stluka