Ejemplo n.º 1
0
 def test_create_assignment(self):
     a_id = 1
     description = "homework"
     deadline = "10-10-2010"
     assignment = Assignment(a_id, description, deadline)
     assert (assignment.get_id() == 1)
     assert (assignment.get_assignment_description() == description)
     assert (assignment.get_assignment_deadline() == deadline)
     assignment.set_assignment_description("tema")
     assert (assignment.get_assignment_description() == "tema")
     dif_assign_same_id = Assignment(1, "diefie", "10.10.2000")
     assert (assignment == dif_assign_same_id)
Ejemplo n.º 2
0
 def test_update_assignment(self):
     a_id = 1
     description = "homework"
     deadline = "10-10-2010"
     assignment = Assignment(a_id, description, deadline)
     assignment.set_assignment_description("lola")
     assert (assignment.get_assignment_description() == "lola")
     assignment.set_assignment_deadline("20.12.2019")
     assert (assignment.get_assignment_deadline() == "20.12.2019")