src/cm/tests/test_registration.py
author gibus
Mon, 10 Feb 2014 15:56:24 +0100
changeset 567 a6b0dcb13eb0
parent 305 df2c3202fd8e
permissions -rw-r--r--
Compliance withh EU/CNIL privacy recommandations, see <http://www.cnil.fr/vos-obligations/sites-web-cookies-et-autres-traceurs/outils-et-codes-sources/la-mesure-daudience/>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
305
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
     1
from django.test import TestCase
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
     2
from django.test.client import Client
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
     3
from django.core import management
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
     4
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
     5
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
     6
from cm.models import *
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
     7
from cm.security import *
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
     8
from cm.tests.test_comment_positioning import create_comment
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
     9
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
    10
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
    11
class RegistrationTest(TestCase):
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
    12
    fixtures = ['roles_generic','test_content']
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
    13
    
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
    14
    def test_registration(self):
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
    15
        user = UserProfile.objects.create_inactive_user('no@noreply', False)
df2c3202fd8e do not lock table with backends other than postgresql (postgresql specific syntax) (fixes #52)
raph
parents:
diff changeset
    16