Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Str NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad BinOpAdd NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Str NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad BinOpAdd NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Str NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr With Call NameLoad NameLoad NameStore body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Str Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Str Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Str Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Str NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad BinOpAdd NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Str NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad BinOpAdd NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Str NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad BinOpAdd NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call NameLoad NameLoad Str NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad BinOpAdd NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Str Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num decorator_list decorator_list
N/A N/A os django.core.files.uploadedfile InMemoryUploadedFile django.test TransactionTestCase django_digest.test DigestAuth django.contrib.auth.models AnonymousUser N/A simplejson json onadata.apps.api.tests.viewsets.test_abstract_viewset TestAbstractViewSet onadata.apps.api.viewsets.xform_submission_api XFormSubmissionApi onadata.apps.logger.models Attachment onadata.libs.permissions DataEntryRole TestXFormSubmissionApi N/A TestAbstractViewSet TransactionTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super N/A self __class__ self setUp N/A N/A self view N/A N/A XFormSubmissionApi as_view N/A head post create create N/A N/A N/A self _publish_xls_form_to_project N/A test_post_submission_anonymous N/A N/A self N/A N/A N/A s N/A N/A self surveys N/A 0 N/A media_file 1335783522563.jpg N/A path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s media_file N/A N/A open path f N/A N/A f N/A InMemoryUploadedFile f media_file media_file image/jpg N/A N/A N/A os path getsize path None N/A submission_path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s N/A s .xml N/A N/A open submission_path sf N/A N/A data N/A xml_submission_file media_file sf f N/A request N/A N/A N/A self factory post N/A /%s/submission N/A N/A self user username data N/A N/A request user N/A AnonymousUser N/A response N/A N/A self view request username N/A N/A self user username N/A N/A N/A self assertContains response Successful submission status_code 201 N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Version N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Accept-Content-Length N/A N/A N/A self assertTrue N/A N/A response has_header Date N/A N/A N/A self assertEqual N/A response N/A Content-Type text/xml; charset=utf-8 N/A N/A N/A self assertEqual N/A response N/A Location N/A http://testserver/%s/submission N/A N/A self user username N/A test_post_submission_authenticated N/A N/A self N/A N/A N/A s N/A N/A self surveys N/A 0 N/A media_file 1335783522563.jpg N/A path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s media_file N/A N/A open path f N/A N/A f N/A InMemoryUploadedFile f media_file media_file image/jpg N/A N/A N/A os path getsize path None N/A submission_path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s N/A s .xml N/A N/A open submission_path sf N/A N/A data N/A xml_submission_file media_file sf f N/A request N/A N/A N/A self factory post /submission data N/A response N/A N/A self view request N/A N/A N/A self assertEqual N/A response status_code 401 N/A N/A N/A sf seek 0 N/A request N/A N/A N/A self factory post /submission data N/A auth N/A DigestAuth bob bobbob N/A N/A N/A N/A request META update N/A auth N/A request META response N/A response N/A N/A self view request username N/A N/A self user username N/A N/A N/A self assertContains response Successful submission status_code 201 N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Version N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Accept-Content-Length N/A N/A N/A self assertTrue N/A N/A response has_header Date N/A N/A N/A self assertEqual N/A response N/A Content-Type text/xml; charset=utf-8 N/A N/A N/A self assertEqual N/A response N/A Location http://testserver/submission N/A test_post_submission_uuid_other_user_username_not_provided N/A N/A self N/A N/A N/A alice_data N/A username email alice alice@localhost.com N/A N/A N/A self _create_user_profile alice_data N/A s N/A N/A self surveys N/A 0 N/A media_file 1335783522563.jpg N/A path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s media_file N/A N/A open path f N/A N/A f N/A InMemoryUploadedFile f media_file media_file image/jpg N/A N/A N/A os path getsize path None N/A path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s N/A s .xml N/A path N/A N/A self _add_uuid_to_submission_xml path N/A self xform N/A N/A open path sf N/A N/A data N/A xml_submission_file media_file sf f N/A request N/A N/A N/A self factory post /submission data N/A response N/A N/A self view request N/A N/A N/A self assertEqual N/A response status_code 401 N/A N/A N/A sf seek 0 N/A request N/A N/A N/A self factory post /submission data N/A auth N/A DigestAuth alice bobbob N/A N/A N/A N/A request META update N/A auth N/A request META response N/A response N/A N/A self view request N/A N/A N/A self assertEqual N/A response status_code 403 N/A test_post_submission_authenticated_json N/A N/A self N/A N/A N/A path N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ .. fixtures transport_submission.json N/A N/A open path f N/A N/A data N/A N/A json loads N/A N/A f read N/A request N/A N/A N/A self factory post /submission data format json N/A response N/A N/A self view request N/A N/A N/A self assertEqual N/A response status_code 401 N/A request N/A N/A N/A self factory post /submission data format json N/A auth N/A DigestAuth bob bobbob N/A N/A N/A N/A request META update N/A auth N/A request META response N/A response N/A N/A self view request N/A N/A N/A self assertContains response Successful submission status_code 201 N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Version N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Accept-Content-Length N/A N/A N/A self assertTrue N/A N/A response has_header Date N/A N/A N/A self assertEqual N/A response N/A Content-Type application/json N/A N/A N/A self assertEqual N/A response N/A Location http://testserver/submission N/A test_post_submission_authenticated_json_with_geo N/A N/A self N/A N/A N/A path N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ .. fixtures movie_form_submission.json N/A N/A open path f N/A N/A data N/A N/A json loads N/A N/A f read N/A request N/A N/A N/A self factory post /submission data format json N/A response N/A N/A self view request N/A N/A N/A self assertEqual N/A response status_code 401 N/A request N/A N/A N/A self factory post /submission data format json N/A auth N/A DigestAuth bob bobbob N/A N/A N/A N/A request META update N/A auth N/A request META response N/A response N/A N/A self view request N/A N/A N/A self assertContains response error":"Improperly status_code 400 N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Version N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Accept-Content-Length N/A N/A N/A self assertTrue N/A N/A response has_header Date N/A N/A N/A self assertEqual N/A response N/A Content-Type application/json N/A N/A N/A self assertEqual N/A response N/A Location http://testserver/submission N/A test_post_submission_authenticated_bad_json N/A N/A self N/A N/A N/A path N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ .. fixtures transport_submission_bad.json N/A N/A open path f N/A N/A data N/A N/A json loads N/A N/A f read N/A request N/A N/A N/A self factory post /submission data format json N/A response N/A N/A self view request N/A N/A N/A self assertEqual N/A response status_code 401 N/A request N/A N/A N/A self factory post /submission data format json N/A auth N/A DigestAuth bob bobbob N/A N/A N/A N/A request META update N/A auth N/A request META response N/A response N/A N/A self view request N/A N/A N/A self assertContains response error":"Received empty submission status_code 400 N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Version N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Accept-Content-Length N/A N/A N/A self assertTrue N/A N/A response has_header Date N/A N/A N/A self assertEqual N/A response N/A Content-Type application/json N/A N/A N/A self assertEqual N/A response N/A Location http://testserver/submission N/A test_post_submission_require_auth N/A N/A self N/A N/A N/A N/A N/A N/A self user profile require_auth True N/A N/A N/A N/A N/A self user profile save N/A count N/A N/A N/A Attachment objects count N/A s N/A N/A self surveys N/A 0 N/A media_file 1335783522563.jpg N/A path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s media_file N/A N/A open path f N/A N/A f N/A InMemoryUploadedFile f media_file media_file image/jpg N/A N/A N/A os path getsize path None N/A submission_path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s N/A s .xml N/A N/A open submission_path sf N/A N/A data N/A xml_submission_file media_file sf f N/A request N/A N/A N/A self factory post /submission data N/A response N/A N/A self view request N/A N/A N/A self assertEqual N/A response status_code 401 N/A response N/A N/A self view request username N/A N/A self user username N/A N/A N/A self assertEqual N/A response status_code 401 N/A N/A N/A sf seek 0 N/A request N/A N/A N/A self factory post /submission data N/A auth N/A DigestAuth bob bobbob N/A N/A N/A N/A request META update N/A auth N/A request META response N/A response N/A N/A self view request username N/A N/A self user username N/A N/A N/A self assertContains response Successful submission status_code 201 N/A N/A N/A self assertEqual N/A count 1 N/A N/A N/A Attachment objects count N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Version N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Accept-Content-Length N/A N/A N/A self assertTrue N/A N/A response has_header Date N/A N/A N/A self assertEqual N/A response N/A Content-Type text/xml; charset=utf-8 N/A N/A N/A self assertEqual N/A response N/A Location http://testserver/submission N/A test_post_submission_require_auth_anonymous_user N/A N/A self N/A N/A N/A N/A N/A N/A self user profile require_auth True N/A N/A N/A N/A N/A self user profile save N/A count N/A N/A N/A Attachment objects count N/A s N/A N/A self surveys N/A 0 N/A media_file 1335783522563.jpg N/A path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s media_file N/A N/A open path f N/A N/A f N/A InMemoryUploadedFile f media_file media_file image/jpg N/A N/A N/A os path getsize path None N/A submission_path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s N/A s .xml N/A N/A open submission_path sf N/A N/A data N/A xml_submission_file media_file sf f N/A request N/A N/A N/A self factory post /submission data N/A response N/A N/A self view request N/A N/A N/A self assertEqual N/A response status_code 401 N/A response N/A N/A self view request username N/A N/A self user username N/A N/A N/A self assertEqual N/A response status_code 401 N/A N/A N/A self assertEqual count N/A N/A N/A Attachment objects count N/A test_post_submission_require_auth_other_user N/A N/A self N/A N/A N/A N/A N/A N/A self user profile require_auth True N/A N/A N/A N/A N/A self user profile save N/A alice_data N/A username email alice alice@localhost.com N/A N/A N/A self _create_user_profile alice_data N/A count N/A N/A N/A Attachment objects count N/A s N/A N/A self surveys N/A 0 N/A media_file 1335783522563.jpg N/A path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s media_file N/A N/A open path f N/A N/A f N/A InMemoryUploadedFile f media_file media_file image/jpg N/A N/A N/A os path getsize path None N/A submission_path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s N/A s .xml N/A N/A open submission_path sf N/A N/A data N/A xml_submission_file media_file sf f N/A request N/A N/A N/A self factory post /submission data N/A response N/A N/A self view request N/A N/A N/A self assertEqual N/A response status_code 401 N/A response N/A N/A self view request username N/A N/A self user username N/A N/A N/A self assertEqual N/A response status_code 401 N/A N/A N/A self assertEqual count N/A N/A N/A Attachment objects count N/A N/A N/A sf seek 0 N/A request N/A N/A N/A self factory post /submission data N/A auth N/A DigestAuth alice bobbob N/A N/A N/A N/A request META update N/A auth N/A request META response N/A response N/A N/A self view request username N/A N/A self user username N/A N/A N/A self assertContains response alice is not allowed to make submissions to bob status_code 403 N/A test_post_submission_require_auth_data_entry_role N/A N/A self N/A N/A N/A N/A N/A N/A self user profile require_auth True N/A N/A N/A N/A N/A self user profile save N/A alice_data N/A username email alice alice@localhost.com N/A alice_profile N/A N/A self _create_user_profile alice_data N/A N/A N/A DataEntryRole add N/A alice_profile user N/A self xform N/A count N/A N/A N/A Attachment objects count N/A s N/A N/A self surveys N/A 0 N/A media_file 1335783522563.jpg N/A path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s media_file N/A N/A open path f N/A N/A f N/A InMemoryUploadedFile f media_file media_file image/jpg N/A N/A N/A os path getsize path None N/A submission_path N/A N/A N/A os path join N/A self main_directory fixtures transportation instances s N/A s .xml N/A N/A open submission_path sf N/A N/A data N/A xml_submission_file media_file sf f N/A request N/A N/A N/A self factory post /submission data N/A response N/A N/A self view request N/A N/A N/A self assertEqual N/A response status_code 401 N/A response N/A N/A self view request username N/A N/A self user username N/A N/A N/A self assertEqual N/A response status_code 401 N/A N/A N/A self assertEqual count N/A N/A N/A Attachment objects count N/A N/A N/A sf seek 0 N/A request N/A N/A N/A self factory post /submission data N/A auth N/A DigestAuth alice bobbob N/A N/A N/A N/A request META update N/A auth N/A request META response N/A response N/A N/A self view request username N/A N/A self user username N/A N/A N/A self assertContains response Successful submission status_code 201 N/A test_post_submission_json_without_submission_key N/A N/A self N/A N/A N/A data N/A id transportation_2011_07_25 N/A request N/A N/A N/A self factory post /submission data format json N/A response N/A N/A self view request N/A N/A N/A self assertEqual N/A response status_code 401 N/A request N/A N/A N/A self factory post /submission data format json N/A auth N/A DigestAuth bob bobbob N/A N/A N/A N/A request META update N/A auth N/A request META response N/A response N/A N/A self view request N/A N/A N/A self assertContains response No submission key provided. status_code 400 N/A N/A