def test_object_created_all_attendnce(self):
     student = t.Student('Denys', 'Daisy', 900000000)
     attendance = a.Attendance(1, student)
     assert student.last_name == 'Denys'
     assert student.first_name == 'Daisy'
     assert student.id == 900000000
     assert attendance.attendance_id == 1
     assert attendance.student == student
 def setUp(self):
     self.student = t.Student('Denys', 'Daisy')
 def test_object_not_created_error_id_bad(self):
     with self.assertRaises(ValueError):
         student = t.Student('Denys', 'Daisy', "none")
 def test_object_not_created_error_first_name(self):
     with self.assertRaises(ValueError):
         student = t.Student('Denys', '123daisy', 900000000)
 def test_student_str(self):
     student = t.Student('Denys', 'Daisy', 900000000)
     self.assertEqual(str(student), "900000000 Denys, Daisy")
 def test_object_created_all_attributes(self):
     student = t.Student('Denys', 'Daisy', 900000000)
     assert student.last_name == 'Denys'
     assert student.first_name == 'Daisy'
     assert student.id == 900000000