Files
mayan-edms/mayan/apps/organizations/tests/test_models.py
2016-05-30 19:18:23 -04:00

24 lines
598 B
Python

from __future__ import unicode_literals
from django.test import TestCase
from ..models import Organization
from .literals import TEST_ORGANIZATION_LABEL, TEST_ORGANIZATION_EDITED_LABEL
class OrganizationModelTestCase(TestCase):
def setUp(self):
self.organization = Organization.objects.create(
label=TEST_ORGANIZATION_LABEL
)
def tearDown(self):
self.organization.delete()
Organization.objects.clear_cache()
def test_basic(self):
queryset = Organization.objects.get_for_now()
self.assertEqual(queryset.exists(), True)