[Twisted-Python] tests for web2/channel/http
![](https://secure.gravatar.com/avatar/88d576a18ff960e17787020cb9b791f7.jpg?s=120&d=mm&r=g)
Hello all, I am trying to learn trial... I am looking for examples of trial testing web2 code. I could not find tests for web2/channel/http.py They exist? Regards, Eduardo
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Thu, 27 Sep 2007 17:09:21 +0530, Eduardo Schettino <schettino72@gmail.com> wrote:
They seem to be in twisted/web2/test/test_http.py. HTTPFactory is imported from twisted.web2.channel.http into twisted.web2.channel, and then test_http imports it from there. Many of the web2 tests are end-to-end tests, rather than unit tests: test_http mostly sets up connections, issues requests to them, then checks the generated response. Jean-Paul
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Thu, 27 Sep 2007 17:09:21 +0530, Eduardo Schettino <schettino72@gmail.com> wrote:
They seem to be in twisted/web2/test/test_http.py. HTTPFactory is imported from twisted.web2.channel.http into twisted.web2.channel, and then test_http imports it from there. Many of the web2 tests are end-to-end tests, rather than unit tests: test_http mostly sets up connections, issues requests to them, then checks the generated response. Jean-Paul
participants (2)
-
Eduardo Schettino
-
Jean-Paul Calderone