{"action":"created","comment":{"url":"https://api.github.com/repos/dirtycoder/pets/pulls/comments/62510679","id":62510679,"diff_hunk":"@@ -343,3 +364,23 @@ def test_get_pet_by_slug(self):\n \n         self.assertEqual(200, resp.status_code)\n         self.assertContains(resp, 'Testing Pet')\n+\n+    def test_get_unsolved_cases_exists(self):\n+        \"\"\"Test if get_unsolved_cases method exists in PetManager\"\"\"\n+        self.assertTrue(hasattr(Pet.objects.get_unsolved_cases, '__call__'))\n+\n+    def test_get_date_3_months_ago(self):\n+        \"\"\"get_date_3_months_ago service must return a date 3 months ago\"\"\"\n+        today = now()\n+        today_3months_ago = today - timedelta(days=90)\n+\n+        self.assertTrue(get_date_3_months_ago(today) == today_3months_ago)\n+\n+\n+    def test_get_unsolved_cases_return(self):\n+        \"\"\"get_unsolved_cases method must return cases still open in 3 months\"\"\"\n+        self.create_some_pets()\n+\n+        unsolved_cases = Pet.objects.get_unsolved_cases()\n+\n+        self.assertEqual(len(unsolved_cases), 2)","path":"pets/meupet/tests/tests.py","position":86,"original_position":86,"commit_id":"ad8d44ccc99db8d4f47cace5e10eff5f6e29245f","original_commit_id":"ad8d44ccc99db8d4f47cace5e10eff5f6e29245f","user":{"login":"dirtycoder","id":1988429,"avatar_url":"https://avatars.githubusercontent.com/u/1988429?v=3","gravatar_id":"","url":"https://api.github.com/users/dirtycoder","html_url":"https://github.com/dirtycoder","followers_url":"https://api.github.com/users/dirtycoder/followers","following_url":"https://api.github.com/users/dirtycoder/following{/other_user}","gists_url":"https://api.github.com/users/dirtycoder/gists{/gist_id}","starred_url":"https://api.github.com/users/dirtycoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirtycoder/subscriptions","organizations_url":"https://api.github.com/users/dirtycoder/orgs","repos_url":"https://api.github.com/users/dirtycoder/repos","events_url":"https://api.github.com/users/dirtycoder/events{/privacy}","received_events_url":"https://api.github.com/users/dirtycoder/received_events","type":"User","site_admin":false},"body":"Blank line here.. :)","created_at":"2016-05-09T14:47:43Z","updated_at":"2016-05-09T14:47:43Z","html_url":"https://github.com/dirtycoder/pets/pull/15#discussion_r62510679","pull_request_url":"https://api.github.com/repos/dirtycoder/pets/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/dirtycoder/pets/pulls/comments/62510679"},"html":{"href":"https://github.com/dirtycoder/pets/pull/15#discussion_r62510679"},"pull_request":{"href":"https://api.github.com/repos/dirtycoder/pets/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/dirtycoder/pets/pulls/15","id":64269865,"html_url":"https://github.com/dirtycoder/pets/pull/15","diff_url":"https://github.com/dirtycoder/pets/pull/15.diff","patch_url":"https://github.com/dirtycoder/pets/pull/15.patch","issue_url":"https://api.github.com/repos/dirtycoder/pets/issues/15","number":15,"state":"open","locked":false,"title":"Command to request pet status","user":{"login":"paulo-romano","id":3494926,"avatar_url":"https://avatars.githubusercontent.com/u/3494926?v=3","gravatar_id":"","url":"https://api.github.com/users/paulo-romano","html_url":"https://github.com/paulo-romano","followers_url":"https://api.github.com/users/paulo-romano/followers","following_url":"https://api.github.com/users/paulo-romano/following{/other_user}","gists_url":"https://api.github.com/users/paulo-romano/gists{/gist_id}","starred_url":"https://api.github.com/users/paulo-romano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulo-romano/subscriptions","organizations_url":"https://api.github.com/users/paulo-romano/orgs","repos_url":"https://api.github.com/users/paulo-romano/repos","events_url":"https://api.github.com/users/paulo-romano/events{/privacy}","received_events_url":"https://api.github.com/users/paulo-romano/received_events","type":"User","site_admin":false},"body":"I have finalized the implementation of the management command and admin action to request pet status. \r\n\r\nNow it's possible to request pet status of unsolved cases, just by a \"python manage.py request_unsolvedcases_status\" in terminal. And request status, of any type of case, by a action in  PetAdmin.","created_at":"2016-03-27T16:51:53Z","updated_at":"2016-05-09T14:47:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96994fe73b9e5c0eb19dee52afa809abc0688f83","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dirtycoder/pets/pulls/15/commits","review_comments_url":"https://api.github.com/repos/dirtycoder/pets/pulls/15/comments","review_comment_url":"https://api.github.com/repos/dirtycoder/pets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dirtycoder/pets/issues/15/comments","statuses_url":"https://api.github.com/repos/dirtycoder/pets/statuses/ad8d44ccc99db8d4f47cace5e10eff5f6e29245f","head":{"label":"paulo-romano:next","ref":"next","sha":"ad8d44ccc99db8d4f47cace5e10eff5f6e29245f","user":{"login":"paulo-romano","id":3494926,"avatar_url":"https://avatars.githubusercontent.com/u/3494926?v=3","gravatar_id":"","url":"https://api.github.com/users/paulo-romano","html_url":"https://github.com/paulo-romano","followers_url":"https://api.github.com/users/paulo-romano/followers","following_url":"https://api.github.com/users/paulo-romano/following{/other_user}","gists_url":"https://api.github.com/users/paulo-romano/gists{/gist_id}","starred_url":"https://api.github.com/users/paulo-romano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulo-romano/subscriptions","organizations_url":"https://api.github.com/users/paulo-romano/orgs","repos_url":"https://api.github.com/users/paulo-romano/repos","events_url":"https://api.github.com/users/paulo-romano/events{/privacy}","received_events_url":"https://api.github.com/users/paulo-romano/received_events","type":"User","site_admin":false},"repo":{"id":51627973,"name":"pets","full_name":"paulo-romano/pets","owner":{"login":"paulo-romano","id":3494926,"avatar_url":"https://avatars.githubusercontent.com/u/3494926?v=3","gravatar_id":"","url":"https://api.github.com/users/paulo-romano","html_url":"https://github.com/paulo-romano","followers_url":"https://api.github.com/users/paulo-romano/followers","following_url":"https://api.github.com/users/paulo-romano/following{/other_user}","gists_url":"https://api.github.com/users/paulo-romano/gists{/gist_id}","starred_url":"https://api.github.com/users/paulo-romano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulo-romano/subscriptions","organizations_url":"https://api.github.com/users/paulo-romano/orgs","repos_url":"https://api.github.com/users/paulo-romano/repos","events_url":"https://api.github.com/users/paulo-romano/events{/privacy}","received_events_url":"https://api.github.com/users/paulo-romano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulo-romano/pets","description":"WIP. Should allow people share photos and information about missing pets or pets available for adoption.","fork":true,"url":"https://api.github.com/repos/paulo-romano/pets","forks_url":"https://api.github.com/repos/paulo-romano/pets/forks","keys_url":"https://api.github.com/repos/paulo-romano/pets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulo-romano/pets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulo-romano/pets/teams","hooks_url":"https://api.github.com/repos/paulo-romano/pets/hooks","issue_events_url":"https://api.github.com/repos/paulo-romano/pets/issues/events{/number}","events_url":"https://api.github.com/repos/paulo-romano/pets/events","assignees_url":"https://api.github.com/repos/paulo-romano/pets/assignees{/user}","branches_url":"https://api.github.com/repos/paulo-romano/pets/branches{/branch}","tags_url":"https://api.github.com/repos/paulo-romano/pets/tags","blobs_url":"https://api.github.com/repos/paulo-romano/pets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulo-romano/pets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulo-romano/pets/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulo-romano/pets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulo-romano/pets/statuses/{sha}","languages_url":"https://api.github.com/repos/paulo-romano/pets/languages","stargazers_url":"https://api.github.com/repos/paulo-romano/pets/stargazers","contributors_url":"https://api.github.com/repos/paulo-romano/pets/contributors","subscribers_url":"https://api.github.com/repos/paulo-romano/pets/subscribers","subscription_url":"https://api.github.com/repos/paulo-romano/pets/subscription","commits_url":"https://api.github.com/repos/paulo-romano/pets/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulo-romano/pets/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulo-romano/pets/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulo-romano/pets/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulo-romano/pets/contents/{+path}","compare_url":"https://api.github.com/repos/paulo-romano/pets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulo-romano/pets/merges","archive_url":"https://api.github.com/repos/paulo-romano/pets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulo-romano/pets/downloads","issues_url":"https://api.github.com/repos/paulo-romano/pets/issues{/number}","pulls_url":"https://api.github.com/repos/paulo-romano/pets/pulls{/number}","milestones_url":"https://api.github.com/repos/paulo-romano/pets/milestones{/number}","notifications_url":"https://api.github.com/repos/paulo-romano/pets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulo-romano/pets/labels{/name}","releases_url":"https://api.github.com/repos/paulo-romano/pets/releases{/id}","deployments_url":"https://api.github.com/repos/paulo-romano/pets/deployments","created_at":"2016-02-13T02:04:36Z","updated_at":"2016-02-13T02:04:37Z","pushed_at":"2016-03-27T16:35:22Z","git_url":"git://github.com/paulo-romano/pets.git","ssh_url":"git@github.com:paulo-romano/pets.git","clone_url":"https://github.com/paulo-romano/pets.git","svn_url":"https://github.com/paulo-romano/pets","homepage":"","size":1253,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"next"}},"base":{"label":"dirtycoder:next","ref":"next","sha":"8b3cb252767596e1b455a958a0dcb1b0f71fdee2","user":{"login":"dirtycoder","id":1988429,"avatar_url":"https://avatars.githubusercontent.com/u/1988429?v=3","gravatar_id":"","url":"https://api.github.com/users/dirtycoder","html_url":"https://github.com/dirtycoder","followers_url":"https://api.github.com/users/dirtycoder/followers","following_url":"https://api.github.com/users/dirtycoder/following{/other_user}","gists_url":"https://api.github.com/users/dirtycoder/gists{/gist_id}","starred_url":"https://api.github.com/users/dirtycoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirtycoder/subscriptions","organizations_url":"https://api.github.com/users/dirtycoder/orgs","repos_url":"https://api.github.com/users/dirtycoder/repos","events_url":"https://api.github.com/users/dirtycoder/events{/privacy}","received_events_url":"https://api.github.com/users/dirtycoder/received_events","type":"User","site_admin":false},"repo":{"id":33442393,"name":"pets","full_name":"dirtycoder/pets","owner":{"login":"dirtycoder","id":1988429,"avatar_url":"https://avatars.githubusercontent.com/u/1988429?v=3","gravatar_id":"","url":"https://api.github.com/users/dirtycoder","html_url":"https://github.com/dirtycoder","followers_url":"https://api.github.com/users/dirtycoder/followers","following_url":"https://api.github.com/users/dirtycoder/following{/other_user}","gists_url":"https://api.github.com/users/dirtycoder/gists{/gist_id}","starred_url":"https://api.github.com/users/dirtycoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirtycoder/subscriptions","organizations_url":"https://api.github.com/users/dirtycoder/orgs","repos_url":"https://api.github.com/users/dirtycoder/repos","events_url":"https://api.github.com/users/dirtycoder/events{/privacy}","received_events_url":"https://api.github.com/users/dirtycoder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dirtycoder/pets","description":"WIP. Should allow people share photos and information about missing pets or pets available for adoption.","fork":false,"url":"https://api.github.com/repos/dirtycoder/pets","forks_url":"https://api.github.com/repos/dirtycoder/pets/forks","keys_url":"https://api.github.com/repos/dirtycoder/pets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dirtycoder/pets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dirtycoder/pets/teams","hooks_url":"https://api.github.com/repos/dirtycoder/pets/hooks","issue_events_url":"https://api.github.com/repos/dirtycoder/pets/issues/events{/number}","events_url":"https://api.github.com/repos/dirtycoder/pets/events","assignees_url":"https://api.github.com/repos/dirtycoder/pets/assignees{/user}","branches_url":"https://api.github.com/repos/dirtycoder/pets/branches{/branch}","tags_url":"https://api.github.com/repos/dirtycoder/pets/tags","blobs_url":"https://api.github.com/repos/dirtycoder/pets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dirtycoder/pets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dirtycoder/pets/git/refs{/sha}","trees_url":"https://api.github.com/repos/dirtycoder/pets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dirtycoder/pets/statuses/{sha}","languages_url":"https://api.github.com/repos/dirtycoder/pets/languages","stargazers_url":"https://api.github.com/repos/dirtycoder/pets/stargazers","contributors_url":"https://api.github.com/repos/dirtycoder/pets/contributors","subscribers_url":"https://api.github.com/repos/dirtycoder/pets/subscribers","subscription_url":"https://api.github.com/repos/dirtycoder/pets/subscription","commits_url":"https://api.github.com/repos/dirtycoder/pets/commits{/sha}","git_commits_url":"https://api.github.com/repos/dirtycoder/pets/git/commits{/sha}","comments_url":"https://api.github.com/repos/dirtycoder/pets/comments{/number}","issue_comment_url":"https://api.github.com/repos/dirtycoder/pets/issues/comments{/number}","contents_url":"https://api.github.com/repos/dirtycoder/pets/contents/{+path}","compare_url":"https://api.github.com/repos/dirtycoder/pets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dirtycoder/pets/merges","archive_url":"https://api.github.com/repos/dirtycoder/pets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dirtycoder/pets/downloads","issues_url":"https://api.github.com/repos/dirtycoder/pets/issues{/number}","pulls_url":"https://api.github.com/repos/dirtycoder/pets/pulls{/number}","milestones_url":"https://api.github.com/repos/dirtycoder/pets/milestones{/number}","notifications_url":"https://api.github.com/repos/dirtycoder/pets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dirtycoder/pets/labels{/name}","releases_url":"https://api.github.com/repos/dirtycoder/pets/releases{/id}","deployments_url":"https://api.github.com/repos/dirtycoder/pets/deployments","created_at":"2015-04-05T13:58:48Z","updated_at":"2016-03-17T09:45:52Z","pushed_at":"2016-05-08T20:24:57Z","git_url":"git://github.com/dirtycoder/pets.git","ssh_url":"git@github.com:dirtycoder/pets.git","clone_url":"https://github.com/dirtycoder/pets.git","svn_url":"https://github.com/dirtycoder/pets","homepage":"","size":1254,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":11,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/dirtycoder/pets/pulls/15"},"html":{"href":"https://github.com/dirtycoder/pets/pull/15"},"issue":{"href":"https://api.github.com/repos/dirtycoder/pets/issues/15"},"comments":{"href":"https://api.github.com/repos/dirtycoder/pets/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/dirtycoder/pets/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/dirtycoder/pets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dirtycoder/pets/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/dirtycoder/pets/statuses/ad8d44ccc99db8d4f47cace5e10eff5f6e29245f"}}}}