mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
A few test optimizations; using native unittest where no Django-specific TestCase features are required.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from django.test import TestCase
|
||||
import unittest
|
||||
|
||||
from django.utils import text
|
||||
|
||||
class TestUtilsText(TestCase):
|
||||
class TestUtilsText(unittest.TestCase):
|
||||
def test_truncate_words(self):
|
||||
self.assertEqual(u'The quick brown fox jumped over the lazy dog.',
|
||||
text.truncate_words(u'The quick brown fox jumped over the lazy dog.', 10))
|
||||
|
||||
Reference in New Issue
Block a user