diff options
| author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2013-05-21 10:42:15 +0100 |
|---|---|---|
| committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2013-05-21 10:42:15 +0100 |
| commit | 09f865276554f35060ff939722ec4cefd578edf6 (patch) | |
| tree | 39afbc8547b1e05cf58855369dbb4647fb642c84 /tests/utils_tests/test_simplelazyobject.py | |
| parent | 18856f866cc0e1cc703ae3f4c84b3c25a847b370 (diff) | |
Use assertIsInstance in tests.
Gives much nicer errors when it fails.
Diffstat (limited to 'tests/utils_tests/test_simplelazyobject.py')
| -rw-r--r-- | tests/utils_tests/test_simplelazyobject.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils_tests/test_simplelazyobject.py b/tests/utils_tests/test_simplelazyobject.py index ca7c2672eb..4c01bd3adf 100644 --- a/tests/utils_tests/test_simplelazyobject.py +++ b/tests/utils_tests/test_simplelazyobject.py @@ -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)) |
