@@ -0,0 +1,1668 @@
+from django.test import TestCase%0Afrom django.core.files.uploadedfile import SimpleUploadedFile%0A%0Afrom web.models import Contact, Team%0A%0A%0Aclass ContactTestCase(TestCase):%0A%0A    def setUp(self):%0A        super(ContactTestCase, self).setUp()%0A        self.contact = Contact.objects.create(%0A            name='user',%0A            email='user@domain.com',%0A            message='test message',%0A            )%0A%0A    def test__str__(self):%0A        name = self.contact.name%0A        email = self.contact.email%0A        message = self.contact.message%0A        final_string = '%7B0%7D: %7B1%7D: %7B2%7D'.format(name, email, message)%0A        self.assertEqual(final_string, self.contact.__str__())%0A%0A%0Aclass TeamTestCase(TestCase):%0A%0A    def setUp(self):%0A        super(TeamTestCase, self).setUp()%0A        self.team = Team.objects.create(%0A            name='user',%0A            email='test@user.com',%0A            description='Description for Test User',%0A            headshot=SimpleUploadedFile(%0A                name='test_headshot.jpg',%0A                content=open('frontend/src/images/logo.png', 'rb').read(),%0A                content_type='image/png'%0A            ),%0A            github_url='www.github.com/Cloud-CV',%0A            linkedin_url='www.linkedin.com/testuser',%0A            personal_website='CloudCV.org',%0A            background_image=SimpleUploadedFile(%0A                name='test_background_image.jpg',%0A                content=open('frontend/src/images/rocket.png', 'rb').read(),%0A                content_type='image/png'%0A            ),%0A            team_type=Team.CORE_TEAM,%0A            visible=True,%0A        )%0A%0A    def test__str__(self):%0A        self.assertEqual(self.team.name, self.team.__str__())%0A

Add tests for __unicode__ functions in model. (#1018)