Loading tests/utils_tests/test_lazyobject.py +1 −1 Original line number Diff line number Diff line Loading @@ -218,7 +218,7 @@ class SimpleLazyObjectTestCase(LazyObjectTestCase): obj = self.lazy_wrap(42) # __repr__ contains __repr__ of setup function and does not evaluate # the SimpleLazyObject self.assertRegexpMatches(repr(obj), '^<SimpleLazyObject:') six.assertRegex(self, repr(obj), '^<SimpleLazyObject:') self.assertIs(obj._wrapped, empty) # make sure evaluation hasn't been triggered self.assertEqual(obj, 42) # evaluate the lazy object Loading Loading
tests/utils_tests/test_lazyobject.py +1 −1 Original line number Diff line number Diff line Loading @@ -218,7 +218,7 @@ class SimpleLazyObjectTestCase(LazyObjectTestCase): obj = self.lazy_wrap(42) # __repr__ contains __repr__ of setup function and does not evaluate # the SimpleLazyObject self.assertRegexpMatches(repr(obj), '^<SimpleLazyObject:') six.assertRegex(self, repr(obj), '^<SimpleLazyObject:') self.assertIs(obj._wrapped, empty) # make sure evaluation hasn't been triggered self.assertEqual(obj, 42) # evaluate the lazy object Loading