def testProject(): project = make("Project", u"PROJECTDESC") assert project["description"] == u"PROJECTDESC"
def testTodoDisplayPositionNoAdd(): todo = make("Todo", u"TESTDESCRIPTION") another_todo = make("Todo", u"TESTDESCRIPTION") assert todo["display_position"] == another_todo["display_position"]
def testTag(): tag = make("Tag", u"TESTNAME") assert tag["name"] == u"TESTNAME"
def testTodoDefaultState(): todo = make("Todo", u"TESTDESCRIPTION") add_to_db(todo) set_completed(todo) commit() assert todo["state"] == u"completed"
def testTodoState(): todo = make("Todo", u"TESTDESCRIPTION") set_completed(todo) assert todo["state"] == u"completed"
def testTodo(): todo = make("Todo", u"TESTDESCRIPTION") assert todo["description"] == u"TESTDESCRIPTION"
def testNote(): note = make("Note", u"NOTETEXT") assert note["text"] == u"NOTETEXT"
def testProjectState(): project = make("Project", u"PROJECTDESC") set_completed(project) assert project["state"] == u"completed"