Files
mayan-edms/mayan/apps/linking/tests/test_models.py
Roberto Rosario fa441149e4 Fix and optimize smart link tests
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-20 20:22:05 -04:00

18 lines
550 B
Python

from __future__ import unicode_literals
from mayan.apps.documents.tests import GenericDocumentTestCase
from .mixins import SmartLinkTestMixin
class SmartLinkTestCase(SmartLinkTestMixin, GenericDocumentTestCase):
def setUp(self):
super(SmartLinkTestCase, self).setUp()
self._create_test_smart_link(add_test_document_type=True)
def test_smart_link_dynamic_label(self):
self.assertEqual(
self.test_smart_link.get_dynamic_label(document=self.test_document),
self.test_document.label
)