def test_error_for_homework(self): """Test that a type error occurs if dictionary is not passed""" with self.assertRaises(AttributeError): main.homework_1(5) main.homework_1('last test') main.homework_1(['hi', 'done', 'now'])
def test_homework_1_mean(self): """Test that the scores of the students for homework 1 are averaged""" self.assertEqual(main.homework_1(self.students), 90)