<filename>conference/test_profile.py<gh_stars>0
from unittest import TestCase
from django.contrib.auth.models import User
from conference.models import Profile


class TestProfile(TestCase):
    def setUp(self):
        self.user = User(username='Test', password='<PASSWORD>')
        self.user.save()

    def test_create_user_profile(self):
        self.assertEquals(Profile.objects.filter(user=self.user).count(), 1)

    def tearDown(self):
        self.user.delete()

<filename>conference/test_profile.py<gh_stars>0
from unittest import TestCase
from django.contrib.auth.models import User
from conference.models import Profile


class TestProfile(TestCase):
    def setUp(self):
        self.user = User(username='Test', password='<PASSWORD>')
        self.user.save()

    def test_create_user_profile(self):
        self.assertEquals(Profile.objects.filter(user=self.user).count(), 1)

    def tearDown(self):
        self.user.delete()
