Files
mayan-edms/mayan/apps/linking/tests/test_models.py
Roberto Rosario 2e5d05403a Update linking app
Add keyword arguments. Update URL parameters to the '_id' form.
Movernize tests and update them to use the latest test case
improvements.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
2019-01-21 02:00:22 -04:00

18 lines
503 B
Python

from __future__ import unicode_literals
from mayan.apps.documents.tests import GenericDocumentTestCase
from .mixins import SmartLinkTestMixin
class SmartLinkTestCase(SmartLinkTestMixin, GenericDocumentTestCase):
def test_dynamic_label(self):
self._create_test_smart_link()
self.test_smart_link.document_types.add(self.document_type)
self.assertEqual(
self.test_smart_link.get_dynamic_label(document=self.document),
self.document.label
)