mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Correct test suite for #848017.
This commit is contained in:
		
							parent
							
								
									3fa5575fa4
								
							
						
					
					
						commit
						8246c439a8
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -12,17 +12,17 @@ | |||
| 
 | ||||
| cases = [ | ||||
|     ('chips=ahoy; vienna=finger', {'chips':'ahoy', 'vienna':'finger'}), | ||||
|     ('keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;";', | ||||
|     ('keebler="E=mc2; L=\\"Loves\\"; fudge=\\012;"', | ||||
|      {'keebler' : 'E=mc2; L="Loves"; fudge=\012;'}), | ||||
| 
 | ||||
|     # Check illegal cookies that have an '=' char in an unquoted value | ||||
|     ('keebler=E=mc2;', {'keebler' : 'E=mc2'}) | ||||
|     ('keebler=E=mc2', {'keebler' : 'E=mc2'}) | ||||
|     ] | ||||
| 
 | ||||
| for data, dict in cases: | ||||
|     C = Cookie.SimpleCookie() ; C.load(data) | ||||
|     print repr(C) | ||||
|     print str(C) | ||||
|     print C.output(sep='\n') | ||||
|     for k, v in sorted(dict.iteritems()): | ||||
|         print ' ', k, repr( C[k].value ), repr(v) | ||||
|         verify(C[k].value == v) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl