Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Str keyword Str keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad 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 Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad 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 Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr CompareIsNot NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list decorator_list
N/A django.core.urlresolvers resolve django.http HttpRequest django.http QueryDict django.test TestCase django.test Client django.contrib.auth.models User django.contrib.auth authenticate login logout django.contrib.auth.decorators login_required django.conf.urls.static static settings N/A json registrar.models Course registrar.models Teacher registrar.models Syllabus teacher.views syllabus N/A TEST_USER_EMAIL ledo@gah.com N/A TEST_USER_USERNAME Ledo N/A TEST_USER_PASSWORD ContinentalUnion N/A TEST_USER_EMAIL2 whalesquid@hideauze.com N/A TEST_USER_USERNAME2 whalesquid N/A TEST_USER_PASSWORD2 Evolvers SyllabusTestCase N/A TestCase N/A tearDown N/A N/A self N/A N/A N/A syllabuses N/A N/A N/A Syllabus objects all N/A syllabus syllabuses N/A N/A N/A N/A syllabus delete N/A courses N/A N/A N/A Course objects all N/A course courses N/A N/A N/A N/A course delete N/A N/A N/A N/A N/A N/A User objects all delete N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A User objects create_user email TEST_USER_EMAIL2 username TEST_USER_USERNAME2 password TEST_USER_PASSWORD2 N/A user N/A N/A N/A User objects get email TEST_USER_EMAIL2 N/A teacher N/A N/A N/A Teacher objects create user user N/A N/A N/A N/A User objects create_user email TEST_USER_EMAIL username TEST_USER_USERNAME password TEST_USER_PASSWORD N/A user N/A N/A N/A User objects get email TEST_USER_EMAIL N/A teacher N/A N/A N/A Teacher objects create user user N/A N/A N/A N/A Course objects create id 1 title Comics Book Course sub_title The definitive course on comics! category teacher teacher N/A get_logged_in_client N/A N/A self N/A N/A N/A client N/A Client N/A N/A N/A client login username TEST_USER_USERNAME password TEST_USER_PASSWORD N/A client N/A get_logged_in_trudy_client N/A N/A self N/A N/A N/A client N/A Client N/A N/A N/A client login username TEST_USER_USERNAME2 password TEST_USER_PASSWORD2 N/A client N/A test_url_resolves_to_syllabus_page_view N/A N/A self N/A N/A N/A found N/A resolve /teacher/course/1/syllabus N/A N/A N/A self assertEqual N/A found func N/A syllabus syllabus_page N/A test_syllabus_page_without_pdf_file N/A N/A self N/A N/A N/A client N/A N/A self get_logged_in_client N/A response N/A N/A client post /teacher/course/1/syllabus N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertIn Comics Book Course N/A response content N/A N/A N/A self assertIn <h1>Upload Syllabus</h1> N/A response content N/A test_syllabus_modal N/A N/A self N/A N/A N/A client N/A N/A self get_logged_in_client N/A response N/A N/A client post /teacher/course/1/syllabus_modal N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertIn syllabus_modal N/A response content N/A test_syllabus_page_with_pdf_file N/A N/A self N/A N/A N/A kwargs N/A HTTP_X_REQUESTED_WITH XMLHttpRequest N/A client N/A N/A self get_logged_in_client N/A file_path N/A N/A settings MEDIA_ROOT /sample.pdf N/A N/A open file_path rb fp N/A N/A N/A N/A self assertTrue N/A fp None N/A response N/A N/A client post /teacher/course/1/save_syllabus N/A file fp kwargs N/A N/A N/A self assertEqual N/A response status_code 200 N/A response N/A N/A client post /teacher/course/1/syllabus N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertIn Comics Book Course N/A response content N/A N/A N/A self assertIn ajax_delete_syllabus N/A response content N/A N/A N/A self assertIn PDF RESULT N/A response content N/A test_save_syllabus N/A N/A self N/A N/A N/A kwargs N/A HTTP_X_REQUESTED_WITH XMLHttpRequest N/A client N/A N/A self get_logged_in_client N/A file_path N/A N/A settings MEDIA_ROOT /sample.pdf N/A N/A open file_path rb fp N/A N/A N/A N/A self assertTrue N/A fp None N/A response N/A N/A client post /teacher/course/1/save_syllabus N/A file fp kwargs N/A N/A N/A self assertEqual N/A response status_code 200 N/A json_string N/A N/A N/A response content decode encoding UTF-8 N/A array N/A N/A json loads json_string N/A N/A N/A self assertEqual N/A array N/A message saved N/A N/A N/A self assertEqual N/A array N/A status success N/A test_delete_syllabus_with_correct_user N/A N/A self N/A N/A N/A kwargs N/A HTTP_X_REQUESTED_WITH XMLHttpRequest N/A client N/A N/A self get_logged_in_client N/A file_path N/A N/A settings MEDIA_ROOT /sample.pdf N/A N/A open file_path rb fp N/A N/A N/A N/A self assertTrue N/A fp None N/A response N/A N/A client post /teacher/course/1/save_syllabus N/A file fp kwargs N/A N/A N/A self assertEqual N/A response status_code 200 N/A json_string N/A N/A N/A response content decode encoding UTF-8 N/A array N/A N/A json loads json_string N/A N/A N/A self assertEqual N/A array N/A message saved N/A N/A N/A self assertEqual N/A array N/A status success N/A response N/A N/A client post /teacher/course/1/delete_syllabus N/A syllabus_id 1 kwargs N/A N/A N/A self assertEqual N/A response status_code 200 N/A json_string N/A N/A N/A response content decode encoding UTF-8 N/A array N/A N/A json loads json_string N/A N/A N/A self assertEqual N/A array N/A message deleted N/A N/A N/A self assertEqual N/A array N/A status success N/A test_delete_syllabus_with_correct_user N/A N/A self N/A N/A N/A kwargs N/A HTTP_X_REQUESTED_WITH XMLHttpRequest N/A client N/A N/A self get_logged_in_client N/A file_path N/A N/A settings MEDIA_ROOT /sample.pdf N/A N/A open file_path rb fp N/A N/A N/A N/A self assertTrue N/A fp None N/A response N/A N/A client post /teacher/course/1/save_syllabus N/A file fp kwargs N/A N/A N/A self assertEqual N/A response status_code 200 N/A json_string N/A N/A N/A response content decode encoding UTF-8 N/A array N/A N/A json loads json_string N/A N/A N/A self assertEqual N/A array N/A message saved N/A N/A N/A self assertEqual N/A array N/A status success N/A N/A N/A client logout N/A client N/A N/A self get_logged_in_trudy_client N/A response N/A N/A client post /teacher/course/1/delete_syllabus N/A syllabus_id 1 kwargs N/A N/A N/A self assertEqual N/A response status_code 200 N/A json_string N/A N/A N/A response content decode encoding UTF-8 N/A array N/A N/A json loads json_string N/A N/A N/A self assertEqual N/A array N/A message unauthorized deletion N/A N/A N/A self assertEqual N/A array N/A status failed N/A N/A