summaryrefslogtreecommitdiff
path: root/tests/version
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-12-07 17:42:31 -0500
committerGitHub <noreply@github.com>2016-12-07 17:42:31 -0500
commitb5f0b3478dfcf0335f8ac2038d59f54b4a05f2a0 (patch)
treef3eb61bfdcf45c7b27fe3c480e9a7533746d1aad /tests/version
parentf909fa84bedb51778a175aadfe4cfe7a91fe06cd (diff)
downloaddjango-b5f0b3478dfcf0335f8ac2038d59f54b4a05f2a0.tar.gz
Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.
Diffstat (limited to 'tests/version')
-rw-r--r--tests/version/tests.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/version/tests.py b/tests/version/tests.py
index b0566685b6..b9541cd31a 100644
--- a/tests/version/tests.py
+++ b/tests/version/tests.py
@@ -1,17 +1,15 @@
-from unittest import TestCase
-
from django import get_version
-from django.utils import six
+from django.test import SimpleTestCase
-class VersionTests(TestCase):
+class VersionTests(SimpleTestCase):
def test_development(self):
ver_tuple = (1, 4, 0, 'alpha', 0)
# This will return a different result when it's run within or outside
# of a git clone: 1.4.devYYYYMMDDHHMMSS or 1.4.
ver_string = get_version(ver_tuple)
- six.assertRegex(self, ver_string, r'1\.4(\.dev[0-9]+)?')
+ self.assertRegex(ver_string, r'1\.4(\.dev[0-9]+)?')
def test_releases(self):
tuples_to_strings = (