def points(self, include_hidden=False):
        """Return the number of points awarded to this submission."""
        return sum(x.points for x in self.testable_results
                   if include_hidden or not x.testable.is_hidden)