{"action":"created","comment":{"url":"https://api.github.com/repos/incuna/django-user-management/pulls/comments/25445052","id":25445052,"diff_hunk":"@@ -140,6 +140,13 @@ def test_delete_spacious_token(self):\n         response = self.view_class.as_view()(request)\n         self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)\n \n+    def test_unknown_token(self):\n+        \"\"\"An unknown token is accepted silently.\"\"\"\n+        auth = 'Token unknown'\n+        request = self.create_request('delete', HTTP_AUTHORIZATION=auth)\n+        response = self.view_class.as_view()(request)\n+        self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)","path":"user_management/api/tests/test_views.py","position":9,"original_position":9,"commit_id":"0e8300bf1b0547e05cde35ed6753762a745971fa","original_commit_id":"0e8300bf1b0547e05cde35ed6753762a745971fa","user":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars.githubusercontent.com/u/1843202?v=3","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"body":"The `GetAuthToken` view has throttles already: `UsernameLoginRateThrottle` and `LoginRateThrottle`.","created_at":"2015-02-26T17:16:45Z","updated_at":"2015-02-26T17:16:45Z","html_url":"https://github.com/incuna/django-user-management/pull/103#discussion_r25445052","pull_request_url":"https://api.github.com/repos/incuna/django-user-management/pulls/103","_links":{"self":{"href":"https://api.github.com/repos/incuna/django-user-management/pulls/comments/25445052"},"html":{"href":"https://github.com/incuna/django-user-management/pull/103#discussion_r25445052"},"pull_request":{"href":"https://api.github.com/repos/incuna/django-user-management/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/incuna/django-user-management/pulls/103","id":30096062,"html_url":"https://github.com/incuna/django-user-management/pull/103","diff_url":"https://github.com/incuna/django-user-management/pull/103.diff","patch_url":"https://github.com/incuna/django-user-management/pull/103.patch","issue_url":"https://api.github.com/repos/incuna/django-user-management/issues/103","number":103,"state":"open","locked":false,"title":"100% code coverage","user":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars.githubusercontent.com/u/1843202?v=3","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-02-26T17:07:06Z","updated_at":"2015-02-26T17:16:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ffe72d198fd79d19d8ab5aab0bd916e33ad454f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/incuna/django-user-management/pulls/103/commits","review_comments_url":"https://api.github.com/repos/incuna/django-user-management/pulls/103/comments","review_comment_url":"https://api.github.com/repos/incuna/django-user-management/pulls/comments{/number}","comments_url":"https://api.github.com/repos/incuna/django-user-management/issues/103/comments","statuses_url":"https://api.github.com/repos/incuna/django-user-management/statuses/0e8300bf1b0547e05cde35ed6753762a745971fa","head":{"label":"incuna:fix-coverage","ref":"fix-coverage","sha":"0e8300bf1b0547e05cde35ed6753762a745971fa","user":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"repo":{"id":16611943,"name":"django-user-management","full_name":"incuna/django-user-management","owner":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/incuna/django-user-management","description":"User management model mixins and api views.","fork":false,"url":"https://api.github.com/repos/incuna/django-user-management","forks_url":"https://api.github.com/repos/incuna/django-user-management/forks","keys_url":"https://api.github.com/repos/incuna/django-user-management/keys{/key_id}","collaborators_url":"https://api.github.com/repos/incuna/django-user-management/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/incuna/django-user-management/teams","hooks_url":"https://api.github.com/repos/incuna/django-user-management/hooks","issue_events_url":"https://api.github.com/repos/incuna/django-user-management/issues/events{/number}","events_url":"https://api.github.com/repos/incuna/django-user-management/events","assignees_url":"https://api.github.com/repos/incuna/django-user-management/assignees{/user}","branches_url":"https://api.github.com/repos/incuna/django-user-management/branches{/branch}","tags_url":"https://api.github.com/repos/incuna/django-user-management/tags","blobs_url":"https://api.github.com/repos/incuna/django-user-management/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/incuna/django-user-management/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/incuna/django-user-management/git/refs{/sha}","trees_url":"https://api.github.com/repos/incuna/django-user-management/git/trees{/sha}","statuses_url":"https://api.github.com/repos/incuna/django-user-management/statuses/{sha}","languages_url":"https://api.github.com/repos/incuna/django-user-management/languages","stargazers_url":"https://api.github.com/repos/incuna/django-user-management/stargazers","contributors_url":"https://api.github.com/repos/incuna/django-user-management/contributors","subscribers_url":"https://api.github.com/repos/incuna/django-user-management/subscribers","subscription_url":"https://api.github.com/repos/incuna/django-user-management/subscription","commits_url":"https://api.github.com/repos/incuna/django-user-management/commits{/sha}","git_commits_url":"https://api.github.com/repos/incuna/django-user-management/git/commits{/sha}","comments_url":"https://api.github.com/repos/incuna/django-user-management/comments{/number}","issue_comment_url":"https://api.github.com/repos/incuna/django-user-management/issues/comments{/number}","contents_url":"https://api.github.com/repos/incuna/django-user-management/contents/{+path}","compare_url":"https://api.github.com/repos/incuna/django-user-management/compare/{base}...{head}","merges_url":"https://api.github.com/repos/incuna/django-user-management/merges","archive_url":"https://api.github.com/repos/incuna/django-user-management/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/incuna/django-user-management/downloads","issues_url":"https://api.github.com/repos/incuna/django-user-management/issues{/number}","pulls_url":"https://api.github.com/repos/incuna/django-user-management/pulls{/number}","milestones_url":"https://api.github.com/repos/incuna/django-user-management/milestones{/number}","notifications_url":"https://api.github.com/repos/incuna/django-user-management/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/incuna/django-user-management/labels{/name}","releases_url":"https://api.github.com/repos/incuna/django-user-management/releases{/id}","created_at":"2014-02-07T10:52:02Z","updated_at":"2015-02-17T00:02:36Z","pushed_at":"2015-02-26T17:06:45Z","git_url":"git://github.com/incuna/django-user-management.git","ssh_url":"git@github.com:incuna/django-user-management.git","clone_url":"https://github.com/incuna/django-user-management.git","svn_url":"https://github.com/incuna/django-user-management","homepage":"","size":2039,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":8,"forks":6,"open_issues":8,"watchers":18,"default_branch":"master"}},"base":{"label":"incuna:master","ref":"master","sha":"421da3f071934a537027b8839e4bb53de02914ec","user":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"repo":{"id":16611943,"name":"django-user-management","full_name":"incuna/django-user-management","owner":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/incuna/django-user-management","description":"User management model mixins and api views.","fork":false,"url":"https://api.github.com/repos/incuna/django-user-management","forks_url":"https://api.github.com/repos/incuna/django-user-management/forks","keys_url":"https://api.github.com/repos/incuna/django-user-management/keys{/key_id}","collaborators_url":"https://api.github.com/repos/incuna/django-user-management/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/incuna/django-user-management/teams","hooks_url":"https://api.github.com/repos/incuna/django-user-management/hooks","issue_events_url":"https://api.github.com/repos/incuna/django-user-management/issues/events{/number}","events_url":"https://api.github.com/repos/incuna/django-user-management/events","assignees_url":"https://api.github.com/repos/incuna/django-user-management/assignees{/user}","branches_url":"https://api.github.com/repos/incuna/django-user-management/branches{/branch}","tags_url":"https://api.github.com/repos/incuna/django-user-management/tags","blobs_url":"https://api.github.com/repos/incuna/django-user-management/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/incuna/django-user-management/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/incuna/django-user-management/git/refs{/sha}","trees_url":"https://api.github.com/repos/incuna/django-user-management/git/trees{/sha}","statuses_url":"https://api.github.com/repos/incuna/django-user-management/statuses/{sha}","languages_url":"https://api.github.com/repos/incuna/django-user-management/languages","stargazers_url":"https://api.github.com/repos/incuna/django-user-management/stargazers","contributors_url":"https://api.github.com/repos/incuna/django-user-management/contributors","subscribers_url":"https://api.github.com/repos/incuna/django-user-management/subscribers","subscription_url":"https://api.github.com/repos/incuna/django-user-management/subscription","commits_url":"https://api.github.com/repos/incuna/django-user-management/commits{/sha}","git_commits_url":"https://api.github.com/repos/incuna/django-user-management/git/commits{/sha}","comments_url":"https://api.github.com/repos/incuna/django-user-management/comments{/number}","issue_comment_url":"https://api.github.com/repos/incuna/django-user-management/issues/comments{/number}","contents_url":"https://api.github.com/repos/incuna/django-user-management/contents/{+path}","compare_url":"https://api.github.com/repos/incuna/django-user-management/compare/{base}...{head}","merges_url":"https://api.github.com/repos/incuna/django-user-management/merges","archive_url":"https://api.github.com/repos/incuna/django-user-management/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/incuna/django-user-management/downloads","issues_url":"https://api.github.com/repos/incuna/django-user-management/issues{/number}","pulls_url":"https://api.github.com/repos/incuna/django-user-management/pulls{/number}","milestones_url":"https://api.github.com/repos/incuna/django-user-management/milestones{/number}","notifications_url":"https://api.github.com/repos/incuna/django-user-management/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/incuna/django-user-management/labels{/name}","releases_url":"https://api.github.com/repos/incuna/django-user-management/releases{/id}","created_at":"2014-02-07T10:52:02Z","updated_at":"2015-02-17T00:02:36Z","pushed_at":"2015-02-26T17:06:45Z","git_url":"git://github.com/incuna/django-user-management.git","ssh_url":"git@github.com:incuna/django-user-management.git","clone_url":"https://github.com/incuna/django-user-management.git","svn_url":"https://github.com/incuna/django-user-management","homepage":"","size":2039,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":8,"forks":6,"open_issues":8,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/incuna/django-user-management/pulls/103"},"html":{"href":"https://github.com/incuna/django-user-management/pull/103"},"issue":{"href":"https://api.github.com/repos/incuna/django-user-management/issues/103"},"comments":{"href":"https://api.github.com/repos/incuna/django-user-management/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/incuna/django-user-management/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/incuna/django-user-management/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/incuna/django-user-management/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/incuna/django-user-management/statuses/0e8300bf1b0547e05cde35ed6753762a745971fa"}}}}