mirror of
				https://github.com/django/django.git
				synced 2025-10-30 09:06:13 +00:00 
			
		
		
		
	Silenced warnings caused by the deprecation of django.utils.unittest. Thanks Preston Timmons and Carl Meyer for their advice. Fixed #20680.
		
			
				
	
	
		
			16 lines
		
	
	
		
			283 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			283 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from unittest import TestCase
 | |
| 
 | |
| from django.test import TestCase as DjangoTestCase
 | |
| 
 | |
| 
 | |
| class TestVanillaUnittest(TestCase):
 | |
| 
 | |
|     def test_sample(self):
 | |
|         self.assertEqual(1, 1)
 | |
| 
 | |
| 
 | |
| class TestDjangoTestCase(DjangoTestCase):
 | |
| 
 | |
|     def test_sample(self):
 | |
|         self.assertEqual(1, 1)
 |