1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Use assertIsInstance in tests.

Gives much nicer errors when it fails.
This commit is contained in:
Marc Tamlyn
2013-05-21 10:42:15 +01:00
parent 18856f866c
commit 09f8652765
31 changed files with 87 additions and 87 deletions

View File

@@ -39,4 +39,4 @@ class TestBaseConv(TestCase):
def test_exception(self):
self.assertRaises(ValueError, BaseConverter, 'abc', sign='a')
self.assertTrue(isinstance(BaseConverter('abc', sign='d'), BaseConverter))
self.assertIsInstance(BaseConverter('abc', sign='d'), BaseConverter)