You are writing a comment about Two-Faced Django Part 2: Models and Django Testing, here is a quick summary:

In the second part of this series we put together our models for this project, and also introduce the Django testing framework.


You are responding to this comment written by Yoan on January 3rd 2008, 23:33.

I'm sure you want to test the down_votes at the second statement.

self.assertEquals(up, poll.up_votes)
self.assertEquals(down, poll.*down*_votes)
self.assertEquals(up-down, poll.score())

Cheers,


Please be aware that comment forms go stale after one hour.





Comments may make use of LifeFlow MarkDown. Raw html will be escaped.


Quick Introduction to LifeFlow MarkDown Syntax

A highlighted code block:

@@ ruby
def a (b, c):
  b * c
end
@@

Other common languages work as well: scheme, python, java, html, etc.

Other markdown syntax:

 ### This is an h3 title
#### This is an h4 title
**this is bold**
*this is italics*

1. This is an
2. ordered list

* And an unordered
* list too

[this is a link](http://www.lethain.com/ "Lethain")