January 2009
1 post
2 tags
Testing time-based views in Django
There are situations where real time is important in the behaviour of some views. For example, one could write an anti-spam mechanism to prevent robots or ill-intended users to post a form too often and too rapidly. In this article I’ll present a strategy for testing such views. Let’s take a very simple example, in which we’ll let users post messages. The time constraint...
Jan 25th
2 notes