bia-fitness/profiles/tests.py
2015-04-07 15:04:40 -04:00

13 lines
322 B
Python

from django.test import TestCase
from django.contrib.auth.models import User
from .models import Profile
class TestProfile(TestCase):
def test_signal(self):
u = User.objects.create_user(username='test', email='test@example.com', password='test')
assert Profile.objects.filter(user=u).count() == 1