Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr 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 NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str Str Str Num NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr 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 Str Str Num NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr 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 NameLoad attr Str keyword TupleLoad AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr 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 NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A __future__ unicode_literals N/A datetime django.utils.timezone now common.literals TIME_DELTA_UNIT_DAYS documents.tests.test_views GenericDocumentViewTestCase sources.links link_upload_version user_management.tests TEST_USER_PASSWORD TEST_USER_USERNAME TEST_ADMIN_PASSWORD TEST_ADMIN_USERNAME models DocumentCheckout permissions permission_document_checkin permission_document_checkin_override permission_document_checkout DocumentCheckoutViewTestCase N/A GenericDocumentViewTestCase N/A test_checkin_document_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 expiration_datetime N/A N/A now N/A N/A datetime timedelta days 1 N/A N/A N/A N/A DocumentCheckout objects checkout_document document N/A self document expiration_datetime expiration_datetime user N/A self user block_new_version True N/A N/A N/A self assertTrue N/A N/A N/A self document is_checked_out N/A response N/A N/A self post checkouts:checkin_document args N/A N/A N/A self document pk follow True N/A N/A N/A self assertEquals N/A response status_code 403 N/A N/A N/A self assertTrue N/A N/A N/A self document is_checked_out N/A test_checkin_document_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 expiration_datetime N/A N/A now N/A N/A datetime timedelta days 1 N/A N/A N/A N/A DocumentCheckout objects checkout_document document N/A self document expiration_datetime expiration_datetime user N/A self user block_new_version True N/A N/A N/A self assertTrue N/A N/A N/A self document is_checked_out N/A N/A N/A N/A N/A self role permissions add N/A permission_document_checkin stored_permission N/A response N/A N/A self post checkouts:checkin_document args N/A N/A N/A self document pk follow True N/A N/A N/A self assertEquals N/A response status_code 200 N/A N/A N/A self assertFalse N/A N/A N/A self document is_checked_out N/A N/A N/A self assertFalse N/A N/A N/A DocumentCheckout objects is_document_checked_out document N/A self document N/A test_checkout_document_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 response N/A N/A self post checkouts:checkout_document args N/A N/A N/A self document pk data N/A expiration_datetime_0 expiration_datetime_1 block_new_version 2 TIME_DELTA_UNIT_DAYS True follow True N/A N/A N/A self assertEquals N/A response status_code 403 N/A N/A N/A self assertFalse N/A N/A N/A self document is_checked_out N/A test_checkout_document_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_checkout stored_permission N/A response N/A N/A self post checkouts:checkout_document args N/A N/A N/A self document pk data N/A expiration_datetime_0 expiration_datetime_1 block_new_version 2 TIME_DELTA_UNIT_DAYS True follow True N/A N/A N/A self assertEquals N/A response status_code 200 N/A N/A N/A self assertTrue N/A N/A N/A self document is_checked_out N/A test_document_new_version_after_checkout N/A N/A self N/A N/A N/A 
        Gitlab issue #231
        User shown option to upload new version of a document even though it
        is blocked by checkout - v2.0.0b2

        Expected results:
            - Link to upload version view should not resolve
            - Upload version view should reject request
         N/A N/A N/A self login username TEST_ADMIN_USERNAME password TEST_ADMIN_PASSWORD N/A expiration_datetime N/A N/A now N/A N/A datetime timedelta days 1 N/A N/A N/A N/A DocumentCheckout objects checkout_document document N/A self document expiration_datetime expiration_datetime user N/A self admin_user block_new_version True N/A N/A N/A self assertTrue N/A N/A N/A self document is_checked_out N/A response N/A N/A self post sources:upload_version args N/A N/A N/A self document pk follow True N/A N/A N/A self assertContains response text blocked from uploading status_code 200 N/A response N/A N/A self get documents:document_version_list args N/A N/A N/A self document pk follow True N/A N/A N/A response context current_app None N/A resolved_link N/A N/A link_upload_version resolve context N/A response context N/A N/A N/A self assertEqual resolved_link None N/A test_forcefull_check_in_document_view_no_permission N/A N/A self N/A N/A N/A expiration_datetime N/A N/A now N/A N/A datetime timedelta days 1 N/A N/A N/A N/A DocumentCheckout objects checkout_document document N/A self document expiration_datetime expiration_datetime user N/A self admin_user block_new_version True N/A N/A N/A self assertTrue N/A N/A N/A self document is_checked_out 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_checkin stored_permission N/A N/A N/A N/A N/A self role permissions add N/A permission_document_checkout stored_permission N/A response N/A N/A self post checkouts:checkin_document args N/A N/A N/A self document pk follow True N/A N/A N/A self assertContains response text Insufficient permissions status_code 403 N/A N/A N/A self assertTrue N/A N/A N/A self document is_checked_out N/A test_forcefull_check_in_document_view_with_permission N/A N/A self N/A N/A N/A expiration_datetime N/A N/A now N/A N/A datetime timedelta days 1 N/A N/A N/A N/A DocumentCheckout objects checkout_document document N/A self document expiration_datetime expiration_datetime user N/A self admin_user block_new_version True N/A N/A N/A self assertTrue N/A N/A N/A self document is_checked_out 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_checkin stored_permission N/A N/A N/A N/A N/A self role permissions add N/A permission_document_checkin stored_permission N/A N/A N/A N/A N/A self role permissions add N/A permission_document_checkin_override stored_permission N/A response N/A N/A self post checkouts:checkin_document args N/A N/A N/A self document pk follow True N/A N/A N/A self assertContains response text hecked in successfully status_code 200 N/A N/A N/A self assertFalse N/A N/A N/A self document is_checked_out N/A N/A