summaryrefslogtreecommitdiff
path: root/tests/migrations/test_exceptions.py
blob: 3d839471f9e83cc61cc522215f741cbe4ee037f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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'))"
        )