mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			449 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			449 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.test import SimpleTestCase
 | |
| from django.urls.resolvers import RegexPattern, RoutePattern
 | |
| from django.utils.translation import gettext_lazy as _
 | |
| 
 | |
| 
 | |
| class RegexPatternTests(SimpleTestCase):
 | |
| 
 | |
|     def test_str(self):
 | |
|         self.assertEqual(str(RegexPattern(_('^translated/$'))), '^translated/$')
 | |
| 
 | |
| 
 | |
| class RoutePatternTests(SimpleTestCase):
 | |
| 
 | |
|     def test_str(self):
 | |
|         self.assertEqual(str(RoutePattern(_('translated/'))), 'translated/')
 |