mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #21765 -- Added support for comparing Context instances
This commit is contained in:
committed by
Baptiste Mispelon
parent
985ae732b2
commit
d97bf2e9c8
@@ -49,3 +49,8 @@ class ContextTests(TestCase):
|
||||
with self.assertRaises(KeyError):
|
||||
test_context['fruit']
|
||||
self.assertIsNone(test_context.get('fruit'))
|
||||
|
||||
def test_context_comparable(self):
|
||||
test_data = {'x': 'y', 'v': 'z', 'd': {'o': object, 'a': 'b'}}
|
||||
|
||||
self.assertEquals(Context(test_data), Context(test_data))
|
||||
|
||||
Reference in New Issue
Block a user