# evennia.web.website.tests

class `evennia.web.website.tests.``EvenniaWebTest`(methodName='runTest')

  Bases: `evennia.utils.test_resources.BaseEvenniaTest`

  `account_typeclass` = 'typeclasses.accounts.Account'
  `object_typeclass` = 'typeclasses.objects.Object'
  `character_typeclass` = 'typeclasses.characters.Character'
  `exit_typeclass` = 'typeclasses.exits.Exit'
  `room_typeclass` = 'typeclasses.rooms.Room'
  `script_typeclass` = 'typeclasses.scripts.Script'
  `channel_typeclass` = 'typeclasses.channels.Channel'
  `url_name` = 'index'
  `unauthenticated_response` = 200
  `authenticated_response` = 200
  `setUp`()

    Sets up testing environment

  `test_valid_chars`()

    Make sure account has playable characters

  `get_kwargs`()
  `test_get`()
  `login`()
  `test_get_authenticated`()

class `evennia.web.website.tests.``AdminTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'django_admin'
  `unauthenticated_response` = 302

class `evennia.web.website.tests.``IndexTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'index'

class `evennia.web.website.tests.``RegisterTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'register'

class `evennia.web.website.tests.``LoginTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'login'

class `evennia.web.website.tests.``LogoutTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'logout'

class `evennia.web.website.tests.``PasswordResetTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'password_change'
  `unauthenticated_response` = 302

class `evennia.web.website.tests.``WebclientTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'webclient:index'
  `test_get`()
  `test_get_disabled`()

class `evennia.web.website.tests.``ChannelListTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'channels'

class `evennia.web.website.tests.``ChannelDetailTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'channel-detail'
  `setUp`()

    Sets up testing environment

  `get_kwargs`()

class `evennia.web.website.tests.``HelpListTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'help'

class `evennia.web.website.tests.``HelpDetailTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'help-entry-detail'
  `setUp`()

    Sets up testing environment

  `get_kwargs`()
  `test_view`()
  `test_object_cache`()

class `evennia.web.website.tests.``HelpLockedDetailTest`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'help-entry-detail'
  `setUp`()

    Sets up testing environment

  `get_kwargs`()
  `test_locked_entry`()
  `test_lock_with_perm`()

class `evennia.web.website.tests.``CharacterCreateView`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'character-create'
  `unauthenticated_response` = 302
  `test_valid_access_multisession_0`()

    Account1 with no characters should be able to create a new one

  `test_valid_access_multisession_2`()

    Account1 should be able to create multiple new characters

class `evennia.web.website.tests.``CharacterPuppetView`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'character-puppet'
  `unauthenticated_response` = 302
  `get_kwargs`()
  `test_invalid_access`()

    Account1 should not be able to puppet Account2:Char2

class `evennia.web.website.tests.``CharacterListView`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'characters'
  `unauthenticated_response` = 302

class `evennia.web.website.tests.``CharacterManageView`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'character-manage'
  `unauthenticated_response` = 302

class `evennia.web.website.tests.``CharacterUpdateView`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'character-update'
  `unauthenticated_response` = 302
  `get_kwargs`()
  `test_valid_access`()

    Account1 should be able to update Account1:Char1

  `test_invalid_access`()

    Account1 should not be able to update Account2:Char2

class `evennia.web.website.tests.``CharacterDeleteView`(methodName='runTest')

  Bases: `evennia.web.website.tests.EvenniaWebTest`

  `url_name` = 'character-delete'
  `unauthenticated_response` = 302
  `get_kwargs`()
  `test_valid_access`()

    Account1 should be able to delete Account1:Char1

  `test_invalid_access`()

    Account1 should not be able to delete Account2:Char2