@@ -0,0 +1,559 @@
+from mongoengine import ValidationError%0Afrom nose.tools import raises%0A%0Afrom app.task import Priority, Task%0A%0Adef test_Set_Title_String():%0A    task = Task()%0A%0A    task.title = %22Hello%22%0A    assert task.title == %22Hello%22%0A%0A@raises(ValidationError)%0Adef test_Set_Title_Int():%0A    task = Task()%0A%0A    task.title = 1%0A%0A    # Should throw ValidationError, since title field is not a String.%0A    task.save()%0A%0Adef test_Set_Priority_High():%0A    task = Task()%0A    assert task.priority == Priority.LOW%0A%0A    task.priority = Priority.HIGH%0A    assert task.priority == Priority.HIGH%0A

Add some tests for the Task model