'DRY helper.'

def check_access(self, user, block_location, is_accessible):

    self.assertIs(bool(access.has_access(user, 'load', modulestore().get_item(block_location), self.course.id)), is_accessible)
