Module ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias alias alias alias alias ClassDef bases NameLoad NameLoad NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call NameLoad NameLoad Str ListLoad If CompareIn Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict If NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str If NameLoad body If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore Str orelse If UnaryOpNot NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num Num NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore NameLoad Assign NameStore Dict Str Str Str Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Dict body Expr Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore NameLoad Assign NameStore Dict Str Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore NameLoad Assign NameStore Dict Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str decorator_list decorator_list
N/A __future__ print_function unicode_literals N/A os django.conf settings django.contrib.auth.models User django.core mail django.utils six djblets.siteconfig.models SiteConfiguration djblets.webapi.testing.testcases WebAPITestCaseMixin reviewboard.notifications.tests EmailTestHelper reviewboard.reviews.models Review reviewboard.testing TestCase reviewboard.webapi.tests.mimetypes error_mimetype file_attachment_comment_item_mimetype general_comment_item_mimetype review_diff_comment_item_mimetype screenshot_comment_item_mimetype reviewboard.webapi.tests.urls get_review_diff_comment_list_url get_review_file_attachment_comment_list_url get_review_general_comment_list_url get_review_screenshot_comment_list_url get_screenshot_list_url BaseWebAPITestCase N/A WebAPITestCaseMixin TestCase EmailTestHelper N/A N/A error_mimetype error_mimetype setUp N/A N/A self N/A N/A N/A N/A N/A N/A super BaseWebAPITestCase self setUp N/A N/A self siteconfig N/A N/A N/A SiteConfiguration objects get_current N/A N/A N/A N/A self siteconfig set mail_send_review_mail False N/A N/A N/A N/A self siteconfig set auth_require_sitewide_login False N/A N/A N/A N/A self siteconfig save N/A N/A self _saved_siteconfig_settings N/A N/A N/A N/A self siteconfig settings copy N/A N/A mail outbox N/A N/A fixtures N/A getattr self fixtures N/A N/A N/A test_users fixtures N/A N/A N/A N/A N/A self client login username grumpy password grumpy N/A N/A self user N/A N/A N/A User objects get username grumpy N/A N/A self base_url http://testserver N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super BaseWebAPITestCase self tearDown N/A N/A N/A N/A self client logout N/A N/A N/A N/A self siteconfig settings N/A self _saved_siteconfig_settings N/A N/A N/A N/A self siteconfig settings N/A self _saved_siteconfig_settings N/A N/A N/A N/A self siteconfig save N/A _testHttpCaching N/A N/A self url check_etags check_last_modified N/A False False N/A N/A response N/A N/A N/A self client get url N/A N/A N/A self assertHttpOK response check_etag check_etags check_last_modified check_last_modified N/A headers N/A N/A check_etags N/A N/A N/A headers N/A HTTP_IF_NONE_MATCH N/A response N/A ETag N/A check_last_modified N/A N/A N/A headers N/A HTTP_IF_MODIFIED_SINCE N/A response N/A Last-Modified N/A response N/A N/A N/A self client get url headers N/A N/A N/A self assertHttpNotModified response N/A _login_user N/A N/A self local_site admin N/A False False N/A N/A Creates a user for a test.

        The proper user will be created based on whether a valid LocalSite
        user is needed, and/or an admin user is needed.
         N/A N/A N/A N/A self client logout N/A username doc N/A admin N/A N/A local_site N/A N/A user N/A N/A N/A User objects get username username N/A local_site N/A N/A self get_local_site name N/A self local_site_name N/A N/A N/A N/A local_site admins add user N/A N/A username admin N/A N/A N/A local_site N/A N/A username grumpy N/A N/A N/A self assertTrue N/A N/A N/A self client login username username password username N/A N/A N/A N/A User objects get username username N/A _postNewDiffComment N/A N/A self review_request review_id comment_text filediff_id interfilediff_id first_line num_lines issue_opened issue_status N/A None None 10 5 None None N/A N/A Creates a diff comment and returns the payload response. N/A N/A filediff_id None N/A N/A diffset N/A N/A N/A N/A review_request diffset_history diffsets latest N/A filediff N/A N/A N/A N/A diffset files all N/A 0 N/A filediff_id N/A filediff id N/A data N/A filediff_id text first_line num_lines filediff_id comment_text first_line num_lines N/A N/A interfilediff_id None N/A N/A N/A data N/A interfilediff_id interfilediff_id N/A N/A issue_opened None N/A N/A N/A data N/A issue_opened issue_opened N/A N/A issue_status None N/A N/A N/A data N/A issue_status issue_status N/A N/A review_request local_site N/A N/A local_site_name N/A N/A review_request local_site name N/A N/A local_site_name None N/A review N/A N/A N/A Review objects get pk review_id N/A rsp N/A N/A self api_post N/A get_review_diff_comment_list_url review local_site_name data expected_mimetype review_diff_comment_item_mimetype N/A N/A N/A self assertEqual N/A rsp N/A stat ok N/A rsp N/A _postNewScreenshotComment N/A N/A self review_request review_id screenshot comment_text x y w h issue_opened issue_status N/A None None N/A N/A Creates a screenshot comment and returns the payload response. N/A N/A review_request local_site N/A N/A local_site_name N/A N/A review_request local_site name N/A N/A local_site_name None N/A post_data N/A screenshot_id text x y w h N/A screenshot id comment_text x y w h N/A N/A issue_opened None N/A N/A N/A post_data N/A issue_opened issue_opened N/A N/A issue_status None N/A N/A N/A post_data N/A issue_status issue_status N/A review N/A N/A N/A Review objects get pk review_id N/A rsp N/A N/A self api_post N/A get_review_screenshot_comment_list_url review local_site_name post_data expected_mimetype screenshot_comment_item_mimetype N/A N/A N/A self assertEqual N/A rsp N/A stat ok N/A rsp N/A _delete_screenshot N/A N/A self review_request screenshot N/A N/A N/A Deletes a screenshot.

        This does not return anything, because DELETE requests don't return a
        response with a payload.
         N/A N/A review_request local_site N/A N/A local_site_name N/A N/A review_request local_site name N/A N/A local_site_name None N/A N/A N/A self api_delete N/A N/A N/A get_screenshot_list_url review_request local_site_name N/A N/A six text_type N/A screenshot id / N/A _postNewFileAttachmentComment N/A N/A self review_request review_id file_attachment comment_text issue_opened issue_status extra_fields N/A None None N/A N/A N/A Creates a file attachment comment.

        This returns the response from the API call to create the comment. N/A N/A review_request local_site N/A N/A local_site_name N/A N/A review_request local_site name N/A N/A local_site_name None N/A post_data N/A file_attachment_id text N/A file_attachment id comment_text N/A N/A N/A post_data update extra_fields N/A N/A issue_opened None N/A N/A N/A post_data N/A issue_opened issue_opened N/A N/A issue_status None N/A N/A N/A post_data N/A issue_status issue_status N/A review N/A N/A N/A Review objects get pk review_id N/A rsp N/A N/A self api_post N/A get_review_file_attachment_comment_list_url review local_site_name post_data expected_mimetype file_attachment_comment_item_mimetype N/A N/A N/A self assertEqual N/A rsp N/A stat ok N/A rsp N/A _post_new_general_comment N/A N/A self review_request review_id comment_text issue_opened issue_status N/A None None N/A N/A Creates a general comment.

        This returns the response from the API call to create the comment.
         N/A N/A review_request local_site N/A N/A local_site_name N/A N/A review_request local_site name N/A N/A local_site_name None N/A post_data N/A text comment_text N/A N/A issue_opened None N/A N/A N/A post_data N/A issue_opened issue_opened N/A N/A issue_status None N/A N/A N/A post_data N/A issue_status issue_status N/A review N/A N/A N/A Review objects get pk review_id N/A rsp N/A N/A self api_post N/A get_review_general_comment_list_url review local_site_name post_data expected_mimetype general_comment_item_mimetype N/A N/A N/A self assertEqual N/A rsp N/A stat ok N/A rsp N/A _getTrophyFilename N/A N/A self N/A N/A N/A N/A N/A N/A os path join N/A settings STATIC_ROOT rb images trophy.png N/A N/A