Verified Commit db33cb09 authored by Julien Palard's avatar Julien Palard
Browse files

Test get_best_student, it was just not tested previously.

parent f15f3d3e
Pipeline #516688 passed with stages
in 2 minutes and 43 seconds
......@@ -64,6 +64,15 @@ I expected to get `'paris'` back, but you gave `{city_name!r}`""".format(
with student_code():
with student_code():
student = hkis.get_best_student()
if not isinstance(student, Student):
"`get_best_student` from a `School` instance should return a `Student`."
f"Got a: {student!r}"
with student_code():
best_school = paris.get_best_school()
if best_school is None:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment