mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.10.x] Replaced use of TestCase.fail() with assertRaises().
Also removed try/except/fail antipattern that hides exceptions.
Backport of c9ae09addf from master
			
			
This commit is contained in:
		| @@ -188,10 +188,7 @@ class ProxyModelTests(TestCase): | ||||
|  | ||||
|     def test_permissions_created(self): | ||||
|         from django.contrib.auth.models import Permission | ||||
|         try: | ||||
|             Permission.objects.get(name="May display users information") | ||||
|         except Permission.DoesNotExist: | ||||
|             self.fail("The permission 'May display users information' has not been created") | ||||
|         Permission.objects.get(name="May display users information") | ||||
|  | ||||
|     def test_proxy_model_signals(self): | ||||
|         """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user