Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert Call NameLoad NameLoad Str With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpAdd Call AttributeLoad SubscriptLoad NameLoad Index Num attr SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad keyword BinOpMod Str NameLoad decorator_list decorator_list
N/A N/A Tests for services relating to typed objects. core.domain obj_services core.tests test_utils extensions.objects.models objects ObjectRegistryUnitTests N/A N/A test_utils GenericTestBase N/A N/A Test the Registry class in obj_services. test_get_object_class_by_type_method N/A N/A self N/A N/A N/A Tests the normal behavior of get_object_class_by_type(). N/A N/A N/A self assertEqual N/A N/A N/A N/A obj_services Registry get_object_class_by_type Int __name__ Int N/A test_fake_class_is_not_gettable N/A N/A self N/A N/A N/A Tests that trying to retrieve a fake class raises an error. N/A N/A N/A self assertRaisesRegexp TypeError not a valid object class N/A N/A N/A N/A N/A obj_services Registry get_object_class_by_type FakeClass N/A test_base_object_is_not_gettable N/A N/A self N/A N/A N/A Tests that BaseObject exists and cannot be set as an obj_type. N/A N/A getattr objects BaseObject N/A N/A N/A self assertRaisesRegexp TypeError not a valid object class N/A N/A N/A N/A N/A obj_services Registry get_object_class_by_type BaseObject N/A N/A ObjectJsFilenamesUnitTests N/A N/A test_utils GenericTestBase N/A N/A Test that all object JS templates are for the objects themselves.

    The frontend code currently gets the JS template by constructing it from
    the object type. This will lead to errors if an object which is a subclass
    of another object uses the latter's JS template. Hence this test.
     test_object_js_filenames N/A N/A self N/A N/A N/A N/A self longMessage True N/A all_object_classes N/A N/A N/A obj_services Registry get_all_object_classes N/A N/A obj_type obj_cls N/A N/A all_object_classes iteritems N/A N/A N/A N/A obj_cls has_editor_js_template N/A N/A template N/A N/A obj_cls get_editor_js_template N/A directive_name N/A %sEditor obj_type N/A normalized_directive_name N/A N/A N/A N/A directive_name N/A 0 lower N/A directive_name N/A 1 N/A N/A N/A self assertIn N/A oppia.directive('%s' normalized_directive_name template msg N/A (%s) obj_type N/A N/A