Add tests for django-comment-client helpers
This commit is contained in:
15
lms/djangoapps/django_comment_client/tests/test_helpers.py
Normal file
15
lms/djangoapps/django_comment_client/tests/test_helpers.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import string
|
||||
import random
|
||||
import collections
|
||||
|
||||
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")
|
||||
Reference in New Issue
Block a user