Ticket #2848: comment_test.diff

File comment_test.diff, 665 bytes (added by pb@…, 18 years ago)

quick patch to fix doctest

  • usr/local/www/django/trunk/django/contrib/comments/models.py

     
    3333    def get_rating_options(self, rating_string):
    3434        """
    3535        Given a rating_string, this returns a tuple of (rating_range, options).
     36
     37        >>> cm = CommentManager()
    3638        >>> s = "scale:1-10|First_category|Second_category"
    37         >>> get_rating_options(s)
     39        >>> cm.get_rating_options(s)
    3840        ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], ['First category', 'Second category'])
    3941        """
    4042        rating_range, options = rating_string.split('|', 1)
Back to Top