Pytest Assert Function Called To Surf