(self, max_rating)
| 93 | |
| 94 | class Rating: |
| 95 | def __init__(self, max_rating): |
| 96 | if not (max_rating > 0): |
| 97 | raise RatingError("Invalid max_rating") |
| 98 | self.max_rating = max_rating |
| 99 | self.ratings = [] |
| 100 | |
| 101 | def rate(self, rating): |
| 102 | if not (0 < rating <= self.max_rating): |
nothing calls this directly
no test coverage detected