django-moo

Introduction

  • Introduction

Tutorials

  • Getting Started as a Player
  • Building Your First Room
  • Your First MOO Verb
  • Writing Tests for Your Verbs
  • Building a Persistent World from Scratch

How-to Guides

  • Creating MOO Verbs
  • Advanced Verb Patterns
  • How Permissions Work in Verbs
  • Bootstrap Recipes
  • Run Multiple Universes on One Server
  • NPCs and Daemons
  • Development
  • Connection Control Verbs
  • Accessibility and MUD Client Compatibility
  • SSH Key Management

Reference

  • The DjangoMOO Runtime
  • Objects in the DjangoMOO Database
  • Properties on Objects
  • Verbs on Objects
  • Command Parser Reference
  • Permissions Reference
  • Verb Sandbox Security Reference
  • Caching
  • Celery Tasks
  • SDK Functions
  • Bootstrapping Reference

Explanation

  • Architecture
  • How Command Parsing Works
  • Why the Verb Sandbox Exists
  • Inside the Shell Client

API Reference

  • API
    • moo
      • moo.get_version
      • moo.asgi
      • moo.bootstrap
      • moo.celery
      • moo.celeryconfig
      • moo.conftest
      • moo.core
        • moo.core.admin
        • moo.core.apps
        • moo.core.code
        • moo.core.exceptions
        • moo.core.forms
        • moo.core.management
        • moo.core.managers
        • moo.core.migrations
        • moo.core.models
        • moo.core.moojson
        • moo.core.parse
        • moo.core.tasks
        • moo.core.tests
        • moo.core.utils
      • moo.logging
      • moo.sdk
      • moo.settings
      • moo.shell
      • moo.storage
      • moo.urls
      • moo.wsgi
    • moo.bootstrap
    • moo.core
      • moo.core.admin
      • moo.core.apps
      • moo.core.code
      • moo.core.exceptions
      • moo.core.forms
      • moo.core.management
      • moo.core.managers
      • moo.core.migrations
      • moo.core.models
      • moo.core.moojson
      • moo.core.parse
      • moo.core.tasks
      • moo.core.tests
        • moo.core.tests.test_bootstrap_sync
        • moo.core.tests.test_code
        • moo.core.tests.test_directions
        • moo.core.tests.test_exceptions
        • moo.core.tests.test_model_acl
        • moo.core.tests.test_model_auth
        • moo.core.tests.test_model_object
        • moo.core.tests.test_model_property
        • moo.core.tests.test_model_verb
        • moo.core.tests.test_moojson
        • moo.core.tests.test_multi_universe
        • moo.core.tests.test_object_lifecycle
        • moo.core.tests.test_parser
        • moo.core.tests.test_security_builtins
        • moo.core.tests.test_security_context
        • moo.core.tests.test_security_imports
        • moo.core.tests.test_security_model_acl
        • moo.core.tests.test_security_model_mail
        • moo.core.tests.test_security_model_object
        • moo.core.tests.test_security_model_property
        • moo.core.tests.test_security_model_verb
        • moo.core.tests.test_security_queryset
        • moo.core.tests.test_security_random
        • moo.core.tests.test_security_sandbox
        • moo.core.tests.test_tasks
        • moo.core.tests.utils
      • moo.core.utils
    • moo.shell
django-moo
  • API
  • moo
  • moo.core
  • moo.core.tests
  • moo.core.tests.test_moojson
  • View page source

moo.core.tests.test_moojson

Tests for moo/core/moojson.py — JSON encoding/decoding of MOO types.

Functions

test_date_does_not_encode_as_datetime()

test_date_encodes_as_d_prefix()

test_date_roundtrip()

test_datetime_encodes_as_dt_prefix()

test_datetime_in_dict_value()

test_datetime_in_list()

test_datetime_roundtrip_naive()

test_datetime_roundtrip_with_timezone()

test_dumps_raises_for_unknown_type()

test_mixed_date_types_in_list()

test_multi_key_dict_passthrough()

test_object_roundtrip(t_init, t_wizard)

test_property_roundtrip(t_init, t_wizard)

test_time_encodes_as_t_prefix()

test_time_roundtrip()

test_time_roundtrip_with_timezone()

test_unknown_single_key_dict_passthrough()

test_verb_roundtrip(t_init, t_wizard)

Previous Next

© Copyright 2024, Phil Christensen.

Built with Sphinx using a theme provided by Read the Docs.