mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-10-30 21:15:27 +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
	 Andris Raugulis
					Andris Raugulis