Skip to content
Snippets Groups Projects
Commit 0f781328 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unit tests for contact_attempt to string methods

parent 7b3f97a2
No related branches found
No related tags found
1 merge request!100Test coverage unit tests
import logging
from django.test import TestCase
from web.tests.functions import create_study_subject
from web.models import ContactAttempt
from web.tests import create_worker
logger = logging.getLogger(__name__)
class ContactAttemptTests(TestCase):
def test_str(self):
contact_attempt = ContactAttempt(worker=create_worker(), subject=create_study_subject())
self.assertIsNotNone(str(contact_attempt))
self.assertIsNotNone(unicode(contact_attempt))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment