~ltp-devs/loco-team-portal/django-1-3-upgrade

« back to all changes in this revision

Viewing changes to loco_directory/userprofiles/tests.py

  • Committer: Tarmac
  • Author(s): Adnane Belmadiaf
  • Date: 2012-12-25 23:01:10 UTC
  • mfrom: (587.1.1 fix.trunk)
  • Revision ID: tarmac@geekpad-20121225230110-7sbl3dhqz25q0fak
[r=] PEP8 fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
2
from django.test import TestCase
3
 
from django.contrib.auth.models import  User
 
3
from django.contrib.auth.models import User
4
4
from django.db.models import signals
5
5
 
6
6
from userprofiles.models import UserProfile
7
7
 
 
8
 
8
9
class SignalTest(TestCase):
9
10
    '''
10
11
    Tests that signals fire properly
27
28
    def test_profile_creation(self):
28
29
        self.user = User.objects.create(username='bob', password='bob')
29
30
        self.user.save()
30
 
        self.assertEqual(UserProfile.objects.all().count(), 1)
 
 
b'\\ No newline at end of file'
 
31
        self.assertEqual(UserProfile.objects.all().count(), 1)