mirror of
				https://github.com/python/cpython.git
				synced 2025-11-02 22:51:25 +00:00 
			
		
		
		
	
		
			
	
	
		
			10 lines
		
	
	
	
		
			208 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			10 lines
		
	
	
	
		
			208 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								from unittest import TestCase
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import json
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class TestDefault(TestCase):
							 | 
						||
| 
								 | 
							
								    def test_default(self):
							 | 
						||
| 
								 | 
							
								        self.assertEquals(
							 | 
						||
| 
								 | 
							
								            json.dumps(type, default=repr),
							 | 
						||
| 
								 | 
							
								            json.dumps(repr(type)))
							 |