Files
edx-platform/lms/djangoapps/django_comment_client/tests/test_helpers.py
2013-05-16 15:57:34 -04:00

13 lines
352 B
Python

from django.test import TestCase
from django_comment_client.helpers import pluralize
class PluralizeTestCase(TestCase):
def testPluralize(self):
self.term = "cat"
self.assertEqual(pluralize(self.term, 0), "cats")
self.assertEqual(pluralize(self.term, 1), "cat")
self.assertEqual(pluralize(self.term, 2), "cats")