Files
mayan-edms/mayan/apps/linking/tests/test_models.py
Roberto Rosario 58bcf20a46 Remove tests * imports
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
2019-08-29 23:10:28 -04:00

18 lines
555 B
Python

from __future__ import unicode_literals
from mayan.apps.documents.tests.base 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
)