bia-fitness/profiles/tests.py

13 lines
322 B
Python
Raw Normal View History

2015-04-06 22:35:51 +00:00
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