<s> import unittest <EOL> from django . contrib . auth . models import User <EOL> from test_base import TestBase <EOL> from test_user_profile import TestUserProfile <EOL> class TestUserLogin ( TestBase ) : <EOL> def test_any_case_login_ok ( self ) : <EOL> username = '<STR_LIT>' <EOL> password = '<STR_LIT>' <EOL> self . _create_user ( username , password ) <EOL> self . _login ( '<STR_LIT>' , password ) <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_username_is_made_lower_case ( self ) : <EOL> username = '<STR_LIT>' <EOL> password = '<STR_LIT>' <EOL> self . _create_user ( username , password ) <EOL> self . _login ( '<STR_LIT>' , password ) <EOL> def test_redirect_if_logged_in ( self ) : <EOL> self . _create_user_and_login ( ) <EOL> response = self . client . get ( '<STR_LIT>' ) <EOL> self . assertEqual ( response . status_code , <NUM_LIT> ) <EOL> class TestUserReservedNames ( TestUserProfile ) : <EOL> @ unittest . skip ( '<STR_LIT>' ) <EOL> def test_disallow_reserved_names ( self ) : <EOL> username = '<STR_LIT>' <EOL> count = User . objects . count ( ) <EOL> self . _login_user_and_profile ( { '<STR_LIT:username>' : username } ) <EOL> self . assertEqual ( len ( User . objects . all ( ) ) , count ) </s>
