Exemplo n.º 1
0
    def test_simple_classic_signup_attrs(self):
        f = SimpleClassicSignupForm()
        fields = set(f.fields.keys())

        self.assertTrue(get_username_field() in fields)
        self.assertTrue('password1' in fields)
        self.assertFalse('password2' in fields)
Exemplo n.º 2
0
    def test_simple_classic_signup_attrs(self):
        f = SimpleClassicSignupForm()
        fields = set(f.fields.keys())

        self.assertTrue(get_username_field() in fields)
        self.assertTrue("password1" in fields)
        self.assertFalse("password2" in fields)
Exemplo n.º 3
0
    def test_simple_classic_signup_attrs(self):
        f = SimpleClassicSignupForm()
        fields = set(f.fields.keys())

        assert get_username_field() in fields
        assert 'password1' in fields
        assert 'password2' not in fields
Exemplo n.º 4
0
    def test_classic_with_email_signup_attrs(self):
        f = ClassicWithEmailSignupForm()
        fields = set(f.fields.keys())

        self.assertTrue(get_username_field() in fields)
        self.assertTrue('email' in fields)
        self.assertTrue('password1' in fields)
        self.assertTrue('password2' in fields)
Exemplo n.º 5
0
    def test_classic_with_email_signup_attrs(self):
        f = ClassicWithEmailSignupForm()
        fields = set(f.fields.keys())

        self.assertTrue(get_username_field() in fields)
        self.assertTrue("email" in fields)
        self.assertTrue("password1" in fields)
        self.assertTrue("password2" in fields)
Exemplo n.º 6
0
    def test_classic_with_email_signup_attrs(self):
        f = ClassicWithEmailSignupForm()
        fields = set(f.fields.keys())

        assert get_username_field() in fields
        assert 'email' in fields
        assert 'password1' in fields
        assert 'password2' in fields