Commit 355f9534 authored by ViolanteCodes's avatar ViolanteCodes
Browse files

updated docstrings on login form tests

parent bbe43129
......@@ -1338,8 +1338,14 @@ class TestLoginFormIsValid(SimpleTestCase):
"""Test the is_valid() on Login Form from forms.py, including
validation errors raised on custom clean method."""
def test_login_valid_blank(self):
"""Test login form with no data."""
form = LoginForm(data = {
})
self.assertTrue(form.is_valid())
def test_login_valid_data_six_words(self):
"""Test login form with six valid words."""
"""Test login form with six words."""
# duo-atlas-hypnotism-curry-creatable-rubble
form = LoginForm(data = {
'word_1': 'duo',
......@@ -1350,6 +1356,20 @@ class TestLoginFormIsValid(SimpleTestCase):
'word_6': 'rubble',
})
self.assertTrue(form.is_valid())
def test_login_valid_data_six_words_random_case(self):
"""Test login form with six words regardless of case."""
# duo-atlas-hypnotism-curry-creatable-rubble
form = LoginForm(data = {
'word_1': 'DUO',
'word_2': 'atlas',
'word_3': 'Hypnotism',
'word_4': 'curry',
'word_5': 'creatable',
'word_6': 'rubble',
})
self.assertTrue(form.is_valid())
def test_login_valid_data_login_string(self):
"""Test login form with a valid string."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment