Switched unittest.TestCase to SimpleTestCase in template_tests/test_nodelist.py.

This commit is contained in:
Jon Dufresne 2020-05-03 07:55:05 -07:00 committed by Mariusz Felisiak
parent ccb1cfb64e
commit d8cb8fdf40
1 changed files with 4 additions and 5 deletions

View File

@ -1,10 +1,9 @@
from unittest import TestCase
from django.template import Context, Engine
from django.template.base import TextNode, VariableNode
from django.test import SimpleTestCase
class NodelistTest(TestCase):
class NodelistTest(SimpleTestCase):
@classmethod
def setUpClass(cls):
@ -32,7 +31,7 @@ class NodelistTest(TestCase):
self.assertEqual(len(vars), 1)
class TextNodeTest(TestCase):
class TextNodeTest(SimpleTestCase):
def test_textnode_repr(self):
engine = Engine()
@ -45,7 +44,7 @@ class TextNodeTest(TestCase):
self.assertEqual(repr(texts[0]), reprtext)
class ErrorIndexTest(TestCase):
class ErrorIndexTest(SimpleTestCase):
"""
Checks whether index of error is calculated correctly in
template debugger in for loops. Refs ticket #5831