moo.core.tests.test_model_object

Tests for moo/core/models/object.py — Object, Relationship, Alias, AncestorCache.

Only objects from bootstrap.initialize_dataset() are treated as pre-existing: System Object (pk=1), Wizard, Permissions, Prepositions. All other objects, verbs, and properties are created within each test.

Functions

test_alias_requires_write_permission(t_init, ...)

test_ancestor_cache_rebuilt_on_parents_add(...)

test_ancestor_cache_rebuilt_on_parents_remove(...)

test_object_add_verb_and_has_verb(t_init, ...)

test_object_add_verb_replace(t_init, t_wizard)

test_object_add_verb_replace_by_filename(...)

test_object_add_verb_replace_wildcard(...)

test_object_contains(t_init, t_wizard)

test_object_delete_basic(t_init, t_wizard)

test_object_delete_invokes_recycle_verb(...)

test_object_find_by_alias(t_init, t_wizard)

test_object_find_by_name(t_init, t_wizard)

test_object_get_ancestors_multiple_parents(...)

test_object_get_ancestors_order(t_init, t_wizard)

test_object_get_contents(t_init, t_wizard)

test_object_get_contents_nested(t_init, t_wizard)

test_object_get_descendents(t_init, t_wizard)

test_object_get_property_direct(t_init, t_wizard)

test_object_get_property_inherited(t_init, ...)

test_object_get_property_no_recurse_raises(...)

test_object_get_property_objects(t_init, ...)

test_object_get_property_original(t_init, ...)

test_object_get_verb_returns_instance(...)

test_object_getattr_missing_raises(t_init, ...)

test_object_getattr_property(t_init, t_wizard)

test_object_getattr_verb(t_init, t_wizard)

test_object_has_property_direct(t_init, t_wizard)

test_object_has_property_inherited(t_init, ...)

test_object_has_property_no_recurse(t_init, ...)

test_object_has_verb_no_recurse(t_init, t_wizard)

test_object_invoke_verb_inherited(t_init, ...)

test_object_invoke_verb_returns_result(...)

test_object_is_a_direct_parent(t_init, t_wizard)

test_object_is_a_grandparent(t_init, t_wizard)

test_object_is_a_unrelated(t_init, t_wizard)

test_object_is_connected(t_init, t_wizard)

test_object_is_named_by_alias(t_init, t_wizard)

test_object_is_named_by_name(t_init, t_wizard)

test_object_is_player_false(t_init, t_wizard)

test_object_is_player_true(t_init, t_wizard)

test_object_is_wizard_false(t_init, t_wizard)

test_object_is_wizard_true(t_init, t_wizard)

test_object_kind(t_init, t_wizard)

test_object_owns(t_init, t_wizard)

test_object_save_recursion_raises(t_init, ...)

test_object_set_property(t_init, t_wizard)

test_object_str(t_init, t_wizard)

test_relationship_weight_auto_assigned(...)