src/cm/tests/test_registration.py
author gibus
Wed, 11 Sep 2013 23:13:01 +0200
changeset 532 0bad3613f59d
parent 305 df2c3202fd8e
permissions -rw-r--r--
Reverse to YUI 3.0.0 since with YUI.3.10.3, comment content including words 'paragraph' or 'section' do not show up on Firefox, this is weird and has to be investigated.
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