Add a base organization test case class.

This commit is contained in:
Roberto Rosario
2016-05-30 19:16:58 -04:00
parent de40977f5f
commit f9670ea7c2

View File

@@ -0,0 +1,15 @@
from __future__ import unicode_literals
from django.test import TestCase
from ..models import Organization
from ..utils import create_default_organization
class OrganizationTestCase(TestCase):
def setUp(self):
create_default_organization()
def tearDown(self):
Organization.objects.all().delete()
Organization.objects.clear_cache()