Coming from a non python/django background (my experience is groovy/
grails), but when we test our controllers (I think this is equivalent
to django views). We simply set up mock params on the request and set
expectations on the controller properties.
Simple example:
given:
request.params =
Hi guys,
I was wandering if anyone has a good example of a unit test where they have
a view which processes a web form. I'm not sure how you'd test something
like that.
Thanks,
mario
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
2 matches
Mail list logo