django/tests/migrations/test_exceptions.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
436 B
Python
Raw Normal View History

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'))"
)