July 8, 2011
Posted by William
How to: Unit testing in Django with mocking and patching
Background For Readsr, I need to track events that recur on a particular day of the week (e.g., first Sunday of the month, third Friday of the month). I created a DayOfWeek model to store any particular event’s day of the week. It contains a method next_day_of_week() to return a datetime.date object set to the [...]














