<s> """<STR_LIT>""" <EOL> from django . core . management import call_command <EOL> from django . test import TestCase <EOL> from seed . lib . superperms . orgs . models import Organization , OrganizationUser <EOL> from seed . landing . models import SEEDUser as User <EOL> class ManagementTests ( TestCase ) : <EOL> "<STR_LIT>" <EOL> def test_create_default_user ( self ) : <EOL> """<STR_LIT>""" <EOL> call_command ( '<STR_LIT>' ) <EOL> self . assertTrue ( User . objects . filter ( <EOL> username = '<STR_LIT>' ) . exists ( ) ) <EOL> self . assertTrue ( Organization . objects . filter ( name = '<STR_LIT>' ) . exists ( ) ) <EOL> self . assertTrue ( OrganizationUser . objects . filter ( <EOL> user__username = '<STR_LIT>' , <EOL> organization__name = '<STR_LIT>' <EOL> ) . exists ( ) ) <EOL> u = User . objects . get ( username = '<STR_LIT>' ) <EOL> u . check_password ( '<STR_LIT>' ) <EOL> call_command ( <EOL> '<STR_LIT>' , <EOL> username = '<STR_LIT>' , <EOL> password = '<STR_LIT>' , <EOL> organization = '<STR_LIT>' <EOL> ) <EOL> self . assertTrue ( User . objects . filter ( <EOL> username = '<STR_LIT>' ) . exists ( ) ) <EOL> self . assertTrue ( Organization . objects . filter ( name = '<STR_LIT>' ) . exists ( ) ) <EOL> self . assertTrue ( OrganizationUser . objects . filter ( <EOL> user__username = '<STR_LIT>' , <EOL> organization__name = '<STR_LIT>' <EOL> ) . exists ( ) ) <EOL> u = User . objects . get ( username = '<STR_LIT>' ) <EOL> u . check_password ( '<STR_LIT>' ) </s>
