mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:37:08 -05:00 
			
		
		
		
	[test/compat] compat_shlex_split: test with newlines
This commit is contained in:
		
				
					committed by
					
						
						Sergey M․
					
				
			
			
				
	
			
			
			
						parent
						
							9e29ef13a3
						
					
				
				
					commit
					a9eede3913
				
			@@ -87,6 +87,7 @@ class TestCompat(unittest.TestCase):
 | 
			
		||||
 | 
			
		||||
    def test_compat_shlex_split(self):
 | 
			
		||||
        self.assertEqual(compat_shlex_split('-option "one two"'), ['-option', 'one two'])
 | 
			
		||||
        self.assertEqual(compat_shlex_split('-option "one\ntwo" \n -flag'), ['-option', 'one\ntwo', '-flag'])
 | 
			
		||||
 | 
			
		||||
    def test_compat_etree_fromstring(self):
 | 
			
		||||
        xml = '''
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user