I have a class which i expect an index error from and i would like to test it.
I have tried the below, but does not seem to work:
input_data = []
my_class = StudentGrades()
result = my_class.calculate_score(input_data)
assert(IndexError, result)
I would appreciate any assistance on this.