Module ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str Str Str Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad Str Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list decorator_list
N/A __future__ unicode_literals documents.models DocumentType documents.permissions permission_document_properties_edit permission_document_view documents.tests.literals TEST_DOCUMENT_TYPE_2 documents.tests.test_views GenericDocumentViewTestCase user_management.tests.literals TEST_USER_USERNAME TEST_USER_PASSWORD models MetadataType permissions permission_metadata_document_add permission_metadata_document_remove permission_metadata_document_edit literals TEST_DOCUMENT_METADATA_VALUE_2 TEST_METADATA_TYPE_LABEL TEST_METADATA_TYPE_LABEL_2 TEST_METADATA_TYPE_NAME TEST_METADATA_TYPE_NAME_2 DocumentMetadataTestCase N/A GenericDocumentViewTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super DocumentMetadataTestCase self setUp N/A N/A self metadata_type N/A N/A N/A MetadataType objects create name TEST_METADATA_TYPE_NAME label TEST_METADATA_TYPE_LABEL N/A N/A N/A N/A N/A self document_type metadata create metadata_type N/A self metadata_type N/A test_metadata_add_view_no_permission N/A N/A self N/A N/A N/A N/A N/A self login username TEST_USER_USERNAME password TEST_USER_PASSWORD N/A N/A N/A N/A N/A self role permissions add N/A permission_document_view stored_permission N/A response N/A N/A self post metadata:metadata_add args N/A N/A N/A self document pk data N/A metadata_type N/A N/A self metadata_type pk N/A N/A N/A self assertEqual N/A response status_code 403 N/A N/A N/A self assertEqual N/A len N/A N/A N/A N/A self document metadata all 0 N/A test_metadata_add_view_with_permission N/A N/A self N/A N/A N/A N/A N/A self login username TEST_USER_USERNAME password TEST_USER_PASSWORD N/A N/A N/A N/A N/A self role permissions add N/A permission_document_view stored_permission N/A N/A N/A N/A N/A self role permissions add N/A permission_metadata_document_add stored_permission N/A N/A N/A N/A N/A self role permissions add N/A permission_metadata_document_edit stored_permission N/A response N/A N/A self post metadata:metadata_add args N/A N/A N/A self document pk data N/A metadata_type N/A N/A self metadata_type pk follow True N/A N/A N/A self assertContains response Success status_code 200 N/A N/A N/A self assertEqual N/A len N/A N/A N/A N/A self document metadata all 1 N/A test_metadata_edit_after_document_type_change N/A N/A self N/A N/A N/A N/A N/A self login username TEST_USER_USERNAME password TEST_USER_PASSWORD N/A N/A N/A N/A N/A self role permissions add N/A permission_document_properties_edit stored_permission N/A N/A N/A N/A N/A self role permissions add N/A permission_metadata_document_edit stored_permission N/A document_type_2 N/A N/A N/A DocumentType objects create label TEST_DOCUMENT_TYPE_2 N/A metadata_type_2 N/A N/A N/A MetadataType objects create name TEST_METADATA_TYPE_NAME_2 label TEST_METADATA_TYPE_LABEL_2 N/A document_metadata_2 N/A N/A N/A document_type_2 metadata create metadata_type metadata_type_2 required True N/A N/A N/A N/A self document set_document_type document_type document_type_2 N/A response N/A N/A self get metadata:metadata_edit args N/A N/A N/A self document pk follow True N/A N/A N/A self assertContains response Edit status_code 200 N/A response N/A N/A self post metadata:metadata_edit args N/A N/A N/A self document pk data N/A form-0-id form-0-update form-0-value form-TOTAL_FORMS form-INITIAL_FORMS form-MAX_NUM_FORMS N/A document_metadata_2 pk True TEST_DOCUMENT_METADATA_VALUE_2 1 0 follow True N/A N/A N/A self assertContains response Metadata for document status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A self document metadata get metadata_type metadata_type_2 value TEST_DOCUMENT_METADATA_VALUE_2 N/A test_metadata_remove_view_no_permission N/A N/A self N/A N/A N/A N/A N/A self login username TEST_USER_USERNAME password TEST_USER_PASSWORD N/A document_metadata N/A N/A N/A N/A self document metadata create metadata_type N/A self metadata_type value N/A N/A N/A self assertEqual N/A len N/A N/A N/A N/A self document metadata all 1 N/A N/A N/A N/A N/A self role permissions add N/A permission_document_view stored_permission N/A response N/A N/A self get metadata:metadata_remove args N/A N/A N/A self document pk N/A N/A N/A self assertEqual N/A response status_code 403 N/A response N/A N/A self post metadata:metadata_remove args N/A N/A N/A self document pk data N/A form-0-id form-0-update form-TOTAL_FORMS form-INITIAL_FORMS form-MAX_NUM_FORMS N/A N/A document_metadata metadata_type pk True 1 0 follow True N/A N/A N/A self assertEqual N/A response status_code 403 N/A N/A N/A self assertEqual N/A len N/A N/A N/A N/A self document metadata all 1 N/A test_metadata_remove_view_with_permission N/A N/A self N/A N/A N/A N/A N/A self login username TEST_USER_USERNAME password TEST_USER_PASSWORD N/A document_metadata N/A N/A N/A N/A self document metadata create metadata_type N/A self metadata_type value N/A N/A N/A self assertEqual N/A len N/A N/A N/A N/A self document metadata all 1 N/A N/A N/A N/A N/A self role permissions add N/A permission_document_view stored_permission N/A N/A N/A N/A N/A self role permissions add N/A permission_metadata_document_remove stored_permission N/A response N/A N/A self get metadata:metadata_remove args N/A N/A N/A self document pk N/A N/A N/A self assertContains response emove status_code 200 N/A response N/A N/A self post metadata:metadata_remove args N/A N/A N/A self document pk data N/A form-0-id form-0-update form-TOTAL_FORMS form-INITIAL_FORMS form-MAX_NUM_FORMS N/A N/A document_metadata metadata_type pk True 1 0 follow True N/A N/A N/A self assertContains response Success status_code 200 N/A N/A N/A self assertEqual N/A len N/A N/A N/A N/A self document metadata all 0 N/A N/A