File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,16 @@ def test_format_http_event(app):
5050
5151        assert  event ["body" ] ==  "" 
5252
53+ 
5354def  test_format_http_event_with_non_unicode_body ():
5455    # Create a request with non-unicode body 
55-     non_unicode_body  =  b' \xff \xfe \xfd '    # Invalid UTF-8 sequence 
56-     builder  =  EnvironBuilder (method = ' POST' data = non_unicode_body )
56+     non_unicode_body  =  b" \xff \xfe \xfd "    # Invalid UTF-8 sequence 
57+     builder  =  EnvironBuilder (method = " POST" data = non_unicode_body )
5758    r  =  Request (builder .get_environ ())
5859
5960    # Call the function and check the result 
6061    event  =  format_http_event (r )
6162
6263    assert  event  is  not None 
63-     assert  ' body' in  event 
64-     assert  event .get (' isBase64Encoded' False ) is  False 
64+     assert  " body" in  event 
65+     assert  event .get (" isBase64Encoded" False ) is  False 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments