﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27253	Use assertIsInstance() in test_force_text_lazy	Chris Jerdonek	nobody	"It looks like it would be cleaner / simpler to be using `assertIsInstance()` here ([https://github.com/django/django/blob/b5aac66b28c615b2bda63548cbd695dbb5a0c381/tests/utils_tests/test_encoding.py#L35 direct code link]):

{{{#!python
def test_force_text_lazy(self):
    s = SimpleLazyObject(lambda: 'x')
    self.assertTrue(issubclass(type(force_text(s)), six.text_type))
}}}

So it would be:

{{{#!python
def test_force_text_lazy(self):
    s = SimpleLazyObject(lambda: 'x')
    self.assertIsInstance(force_text(s), six.text_type)
}}}


"	Cleanup/optimization	closed	Utilities	dev	Normal	invalid			Unreviewed	0	0	0	0	1	0
