mirror of
				https://github.com/django/django.git
				synced 2025-11-04 13:39:16 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			448 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from django.db.migrations.exceptions import NodeNotFoundError
 | 
						|
from django.test import SimpleTestCase
 | 
						|
 | 
						|
 | 
						|
class ExceptionTests(SimpleTestCase):
 | 
						|
    def test_node_not_found_error_repr(self):
 | 
						|
        node = ('some_app_label', 'some_migration_label')
 | 
						|
        error_repr = repr(NodeNotFoundError('some message', node))
 | 
						|
        self.assertEqual(
 | 
						|
            error_repr,
 | 
						|
            "NodeNotFoundError(('some_app_label', 'some_migration_label'))"
 | 
						|
        )
 |