{"action":"created","comment":{"url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/comments/58170874","id":58170874,"diff_hunk":"@@ -65,18 +66,29 @@ def make_coach(self):\n         Create coach user.\n         \"\"\"\n         role = CourseCcxCoachRole(self.course.id)\n-        role.add_users(self.coach)\n+        role.add_users(self.user)\n \n     def make_ccx(self):\n         \"\"\"\n         Create ccx.\n         \"\"\"\n-        ccx = CcxFactory(course_id=self.course.id, coach=self.coach)\n+        ccx = CcxFactory(course_id=self.course.id, coach=self.user)\n         return ccx\n \n+    def test_student_cannot_see_teacher_dashboard(self):\n+        \"\"\"\n+        Asserts that an unauthenticated user cannot access Teacher Dashboard.\n+        \"\"\"\n+        student = UserFactory.create()\n+        student_user = Client()\n+        self.client.login(username=student.username, password=\"test\")","path":"lms/djangoapps/teacher_dashboard/tests/test_views.py","position":52,"original_position":52,"commit_id":"a09e55eecd47bd989497ebb6bb505fb39c640e75","original_commit_id":"a09e55eecd47bd989497ebb6bb505fb39c640e75","user":{"login":"den99f","id":2011732,"avatar_url":"https://avatars.githubusercontent.com/u/2011732?v=3","gravatar_id":"","url":"https://api.github.com/users/den99f","html_url":"https://github.com/den99f","followers_url":"https://api.github.com/users/den99f/followers","following_url":"https://api.github.com/users/den99f/following{/other_user}","gists_url":"https://api.github.com/users/den99f/gists{/gist_id}","starred_url":"https://api.github.com/users/den99f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/den99f/subscriptions","organizations_url":"https://api.github.com/users/den99f/orgs","repos_url":"https://api.github.com/users/den99f/repos","events_url":"https://api.github.com/users/den99f/events{/privacy}","received_events_url":"https://api.github.com/users/den99f/received_events","type":"User","site_admin":false},"body":"I prefer when creating user in setUp method. ","created_at":"2016-04-01T07:30:18Z","updated_at":"2016-04-01T07:30:18Z","html_url":"https://github.com/Livit/Livit.Learn.EdX/pull/32#discussion_r58170874","pull_request_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/comments/58170874"},"html":{"href":"https://github.com/Livit/Livit.Learn.EdX/pull/32#discussion_r58170874"},"pull_request":{"href":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/32","id":64902318,"html_url":"https://github.com/Livit/Livit.Learn.EdX/pull/32","diff_url":"https://github.com/Livit/Livit.Learn.EdX/pull/32.diff","patch_url":"https://github.com/Livit/Livit.Learn.EdX/pull/32.patch","issue_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/issues/32","number":32,"state":"open","locked":false,"title":"Move Teacher Dashboard into Master Course.","user":{"login":"polesye","id":1247491,"avatar_url":"https://avatars.githubusercontent.com/u/1247491?v=3","gravatar_id":"","url":"https://api.github.com/users/polesye","html_url":"https://github.com/polesye","followers_url":"https://api.github.com/users/polesye/followers","following_url":"https://api.github.com/users/polesye/following{/other_user}","gists_url":"https://api.github.com/users/polesye/gists{/gist_id}","starred_url":"https://api.github.com/users/polesye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polesye/subscriptions","organizations_url":"https://api.github.com/users/polesye/orgs","repos_url":"https://api.github.com/users/polesye/repos","events_url":"https://api.github.com/users/polesye/events{/privacy}","received_events_url":"https://api.github.com/users/polesye/received_events","type":"User","site_admin":false},"body":"Display teacher dashboard for CCX in Master Courses, because all the managment tabs are there (CCX Coach, License).\r\nIt was in CCX before. \r\n@den99f @auraz please review.\r\n@sidorovdmitry FYI.","created_at":"2016-04-01T06:49:16Z","updated_at":"2016-04-01T07:30:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"088279dc07abb8be3ae034a1d453caad75c21688","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/32/commits","review_comments_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/32/comments","review_comment_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/issues/32/comments","statuses_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/statuses/a09e55eecd47bd989497ebb6bb505fb39c640e75","head":{"label":"Livit:anton/move-teacher-dashboard-in-master-course","ref":"anton/move-teacher-dashboard-in-master-course","sha":"a09e55eecd47bd989497ebb6bb505fb39c640e75","user":{"login":"Livit","id":9495033,"avatar_url":"https://avatars.githubusercontent.com/u/9495033?v=3","gravatar_id":"","url":"https://api.github.com/users/Livit","html_url":"https://github.com/Livit","followers_url":"https://api.github.com/users/Livit/followers","following_url":"https://api.github.com/users/Livit/following{/other_user}","gists_url":"https://api.github.com/users/Livit/gists{/gist_id}","starred_url":"https://api.github.com/users/Livit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Livit/subscriptions","organizations_url":"https://api.github.com/users/Livit/orgs","repos_url":"https://api.github.com/users/Livit/repos","events_url":"https://api.github.com/users/Livit/events{/privacy}","received_events_url":"https://api.github.com/users/Livit/received_events","type":"Organization","site_admin":false},"repo":{"id":14646304,"name":"Livit.Learn.EdX","full_name":"Livit/Livit.Learn.EdX","owner":{"login":"Livit","id":9495033,"avatar_url":"https://avatars.githubusercontent.com/u/9495033?v=3","gravatar_id":"","url":"https://api.github.com/users/Livit","html_url":"https://github.com/Livit","followers_url":"https://api.github.com/users/Livit/followers","following_url":"https://api.github.com/users/Livit/following{/other_user}","gists_url":"https://api.github.com/users/Livit/gists{/gist_id}","starred_url":"https://api.github.com/users/Livit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Livit/subscriptions","organizations_url":"https://api.github.com/users/Livit/orgs","repos_url":"https://api.github.com/users/Livit/repos","events_url":"https://api.github.com/users/Livit/events{/privacy}","received_events_url":"https://api.github.com/users/Livit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Livit/Livit.Learn.EdX","description":"the edX learning management system (LMS) and course authoring tool, Studio","fork":true,"url":"https://api.github.com/repos/Livit/Livit.Learn.EdX","forks_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/forks","keys_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/teams","hooks_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/hooks","issue_events_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/issues/events{/number}","events_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/events","assignees_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/assignees{/user}","branches_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/branches{/branch}","tags_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/tags","blobs_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/git/refs{/sha}","trees_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/statuses/{sha}","languages_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/languages","stargazers_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/stargazers","contributors_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/contributors","subscribers_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/subscribers","subscription_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/subscription","commits_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/commits{/sha}","git_commits_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/git/commits{/sha}","comments_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/comments{/number}","issue_comment_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/issues/comments{/number}","contents_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/contents/{+path}","compare_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/merges","archive_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/downloads","issues_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/issues{/number}","pulls_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls{/number}","milestones_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/milestones{/number}","notifications_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/labels{/name}","releases_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/releases{/id}","deployments_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/deployments","created_at":"2013-11-23T16:54:25Z","updated_at":"2016-03-23T17:55:11Z","pushed_at":"2016-04-01T07:00:09Z","git_url":"git://github.com/Livit/Livit.Learn.EdX.git","ssh_url":"git@github.com:Livit/Livit.Learn.EdX.git","clone_url":"https://github.com/Livit/Livit.Learn.EdX.git","svn_url":"https://github.com/Livit/Livit.Learn.EdX","homepage":"http://code.edx.org/","size":558532,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":7,"default_branch":"labster/develop"}},"base":{"label":"Livit:labster/release","ref":"labster/release","sha":"079857e3f222be68ec9d43567c9a873c91d5b661","user":{"login":"Livit","id":9495033,"avatar_url":"https://avatars.githubusercontent.com/u/9495033?v=3","gravatar_id":"","url":"https://api.github.com/users/Livit","html_url":"https://github.com/Livit","followers_url":"https://api.github.com/users/Livit/followers","following_url":"https://api.github.com/users/Livit/following{/other_user}","gists_url":"https://api.github.com/users/Livit/gists{/gist_id}","starred_url":"https://api.github.com/users/Livit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Livit/subscriptions","organizations_url":"https://api.github.com/users/Livit/orgs","repos_url":"https://api.github.com/users/Livit/repos","events_url":"https://api.github.com/users/Livit/events{/privacy}","received_events_url":"https://api.github.com/users/Livit/received_events","type":"Organization","site_admin":false},"repo":{"id":14646304,"name":"Livit.Learn.EdX","full_name":"Livit/Livit.Learn.EdX","owner":{"login":"Livit","id":9495033,"avatar_url":"https://avatars.githubusercontent.com/u/9495033?v=3","gravatar_id":"","url":"https://api.github.com/users/Livit","html_url":"https://github.com/Livit","followers_url":"https://api.github.com/users/Livit/followers","following_url":"https://api.github.com/users/Livit/following{/other_user}","gists_url":"https://api.github.com/users/Livit/gists{/gist_id}","starred_url":"https://api.github.com/users/Livit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Livit/subscriptions","organizations_url":"https://api.github.com/users/Livit/orgs","repos_url":"https://api.github.com/users/Livit/repos","events_url":"https://api.github.com/users/Livit/events{/privacy}","received_events_url":"https://api.github.com/users/Livit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Livit/Livit.Learn.EdX","description":"the edX learning management system (LMS) and course authoring tool, Studio","fork":true,"url":"https://api.github.com/repos/Livit/Livit.Learn.EdX","forks_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/forks","keys_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/teams","hooks_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/hooks","issue_events_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/issues/events{/number}","events_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/events","assignees_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/assignees{/user}","branches_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/branches{/branch}","tags_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/tags","blobs_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/git/refs{/sha}","trees_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/statuses/{sha}","languages_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/languages","stargazers_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/stargazers","contributors_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/contributors","subscribers_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/subscribers","subscription_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/subscription","commits_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/commits{/sha}","git_commits_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/git/commits{/sha}","comments_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/comments{/number}","issue_comment_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/issues/comments{/number}","contents_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/contents/{+path}","compare_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/merges","archive_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/downloads","issues_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/issues{/number}","pulls_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls{/number}","milestones_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/milestones{/number}","notifications_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/labels{/name}","releases_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/releases{/id}","deployments_url":"https://api.github.com/repos/Livit/Livit.Learn.EdX/deployments","created_at":"2013-11-23T16:54:25Z","updated_at":"2016-03-23T17:55:11Z","pushed_at":"2016-04-01T07:00:09Z","git_url":"git://github.com/Livit/Livit.Learn.EdX.git","ssh_url":"git@github.com:Livit/Livit.Learn.EdX.git","clone_url":"https://github.com/Livit/Livit.Learn.EdX.git","svn_url":"https://github.com/Livit/Livit.Learn.EdX","homepage":"http://code.edx.org/","size":558532,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":7,"default_branch":"labster/develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/32"},"html":{"href":"https://github.com/Livit/Livit.Learn.EdX/pull/32"},"issue":{"href":"https://api.github.com/repos/Livit/Livit.Learn.EdX/issues/32"},"comments":{"href":"https://api.github.com/repos/Livit/Livit.Learn.EdX/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Livit/Livit.Learn.EdX/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/Livit/Livit.Learn.EdX/statuses/a09e55eecd47bd989497ebb6bb505fb39c640e75"}}}}