Skip to content

Commit

Permalink
Added test unit for about app
Browse files Browse the repository at this point in the history
  • Loading branch information
vagrant committed Nov 10, 2014
1 parent 5676a62 commit eebcae8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
Empty file.
12 changes: 12 additions & 0 deletions cirujanos/apps/about/tests/unit/test_doctorcontenttype.py
@@ -0,0 +1,12 @@
from django.test import TestCase
from ..support import factories as f


class DoctorContentTypeTestCase(TestCase):

def setUp(self):
self.doctor_content_type = f.DoctorContentTypeFactory.create()

def test_display_object_in_django_admin(self):
self.assertEqual(self.doctor_content_type.__str__(),
self.doctor_content_type.code)
12 changes: 12 additions & 0 deletions cirujanos/apps/about/tests/unit/test_notificationemail.py
@@ -0,0 +1,12 @@
from django.test import TestCase
from ..support import factories as f


class NotificationEmailTestCase(TestCase):

def setUp(self):
self.notification_email = f.NotificationEmailFactory.create()

def test_display_object_in_django_admin(self):
self.assertEqual(self.notification_email.__str__(),
self.notification_email.email)
24 changes: 0 additions & 24 deletions cirujanos/apps/media/forms.py

This file was deleted.

0 comments on commit eebcae8

Please sign in to comment.