mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	one for push() and update(), the one removed for pop()). Based on a patch from Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
		
			
				
	
	
		
			19 lines
		
	
	
		
			214 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			214 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # coding: utf-8
 | |
| 
 | |
| context_tests = r"""
 | |
| >>> from django.template import Context
 | |
| >>> c = Context({'a': 1, 'b': 'xyzzy'})
 | |
| >>> c['a']
 | |
| 1
 | |
| >>> c.push()
 | |
| {}
 | |
| >>> c['a'] = 2
 | |
| >>> c['a']
 | |
| 2
 | |
| >>> c.pop()
 | |
| {'a': 2}
 | |
| >>> c['a']
 | |
| 1
 | |
| """
 | |
| 
 |