mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-11-04 03:02:15 +01:00 
			
		
		
		
	Fix to_ntext test.
This commit is contained in:
		@@ -78,7 +78,7 @@ class TestUtils(object):
 | 
				
			|||||||
		assert self.utils.to_ntext('fran\xc3\xa7ais') == 'fran\xc3\xa7ais'
 | 
							assert self.utils.to_ntext('fran\xc3\xa7ais') == 'fran\xc3\xa7ais'
 | 
				
			||||||
		assert self.utils.to_ntext(u'fran\xe7ais') == 'fran\xe7ais'
 | 
							assert self.utils.to_ntext(u'fran\xe7ais') == 'fran\xe7ais'
 | 
				
			||||||
		# binary_type (bytes)
 | 
							# binary_type (bytes)
 | 
				
			||||||
		assert self.utils.to_utext(b'fran\xc3\xa7ais') == 'fran\xe7ais'
 | 
							assert self.utils.to_ntext(b'fran\xc3\xa7ais') == 'fran\xe7ais'
 | 
				
			||||||
		# other
 | 
							# other
 | 
				
			||||||
		with pytest.raises(TypeError):
 | 
							with pytest.raises(TypeError):
 | 
				
			||||||
			self.utils.to_ntext(123)
 | 
								self.utils.to_ntext(123)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user