mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Tested AppConfig.__repr__().
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							d9aeee205d
						
					
				
				
					commit
					110f4bb6a2
				
			| @@ -367,6 +367,10 @@ class AppConfigTests(SimpleTestCase): | |||||||
|         ac = AppConfig('label', Stub(__path__=['a', 'a'])) |         ac = AppConfig('label', Stub(__path__=['a', 'a'])) | ||||||
|         self.assertEqual(ac.path, 'a') |         self.assertEqual(ac.path, 'a') | ||||||
|  |  | ||||||
|  |     def test_repr(self): | ||||||
|  |         ac = AppConfig('label', Stub(__path__=['a'])) | ||||||
|  |         self.assertEqual(repr(ac), '<AppConfig: label>') | ||||||
|  |  | ||||||
|  |  | ||||||
| class NamespacePackageAppTests(SimpleTestCase): | class NamespacePackageAppTests(SimpleTestCase): | ||||||
|     # We need nsapp to be top-level so our multiple-paths tests can add another |     # We need nsapp to be top-level so our multiple-paths tests can add another | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user