mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Made miscellaneous code cleanups
This commit is contained in:
committed by
Markus Holtermann
parent
a05d86a69a
commit
ca32979cdc
@@ -103,8 +103,7 @@ class LazyObjectTestCase(TestCase):
|
||||
|
||||
def test_hash(self):
|
||||
obj = self.lazy_wrap('foo')
|
||||
d = {}
|
||||
d[obj] = 'bar'
|
||||
d = {obj: 'bar'}
|
||||
self.assertIn('foo', d)
|
||||
self.assertEqual(d['foo'], 'bar')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user