'Helper to retrieve the course at the given course_location and
assert that its hashed grading policy (from the grades transformer)
is as expected.'

def _validate_grading_policy_hash(self, course_location, grading_policy_hash):

    block_structure = get_course_blocks(self.student, course_location, self.transformers)
    self.assert_collected_transformer_block_fields(block_structure, course_location, self.TRANSFORMER_CLASS_TO_TEST, grading_policy_hash=grading_policy_hash)
