mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Use assertIsInstance in tests.
Gives much nicer errors when it fails.
This commit is contained in:
parent
18856f866c
commit
09f8652765
31 changed files with 87 additions and 87 deletions
|
@ -68,7 +68,7 @@ class TestUtilsSimpleLazyObject(TestCase):
|
|||
|
||||
# Second, for an evaluated SimpleLazyObject
|
||||
name = x.name # evaluate
|
||||
self.assertTrue(isinstance(x._wrapped, _ComplexObject))
|
||||
self.assertIsInstance(x._wrapped, _ComplexObject)
|
||||
# __repr__ contains __repr__ of wrapped object
|
||||
self.assertEqual("<SimpleLazyObject: %r>" % x._wrapped, repr(x))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue