{"action":"created","comment":{"url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/comments/183550568","pull_request_review_id":114570495,"id":183550568,"diff_hunk":"@@ -152,3 +152,34 @@ def test_deletion(self):\n             json_dict = json.load(fd)\n         for key, value in json_dict.items():\n             self.assertTrue(value['id'] != my_id)\n+\n+    def test_get_file_storage(self):\n+        '''\n+            Tests the get method of file storage\n+        '''\n+        state = State(name=\"Cali\")\n+        state_id = state.id\n+        self.storage.new(state)\n+        state_obj = self.storage.get(\"State\", state_id)\n+        self.assertEqual(state_obj, state)\n+\n+    def test_count_file_storage_no_class(self):\n+        '''\n+        Tests the count method in db storage when no class is passed\n+        '''\n+        first_count = self.storage.count()\n+        state = State(name=\"Colorado\")\n+        state.save()\n+        second_count = self.storage.count()\n+        self.assertTrue(first_count + 1, second_count)\n+\n+\n+    def test_count_file_storage_class(self):\n+        '''\n+        Tests the count method in db storage when passing a class\n+        '''\n+        first_count = self.storage.count(\"State\")","path":"tests/test_models/test_engine/test_file_storage.py","position":30,"original_position":30,"commit_id":"4479643e80956fa568291091576fa77b47d2efbc","original_commit_id":"4479643e80956fa568291091576fa77b47d2efbc","user":{"login":"hundalrs","id":19437085,"avatar_url":"https://avatars1.githubusercontent.com/u/19437085?v=4","gravatar_id":"","url":"https://api.github.com/users/hundalrs","html_url":"https://github.com/hundalrs","followers_url":"https://api.github.com/users/hundalrs/followers","following_url":"https://api.github.com/users/hundalrs/following{/other_user}","gists_url":"https://api.github.com/users/hundalrs/gists{/gist_id}","starred_url":"https://api.github.com/users/hundalrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hundalrs/subscriptions","organizations_url":"https://api.github.com/users/hundalrs/orgs","repos_url":"https://api.github.com/users/hundalrs/repos","events_url":"https://api.github.com/users/hundalrs/events{/privacy}","received_events_url":"https://api.github.com/users/hundalrs/received_events","type":"User","site_admin":false},"body":"If your count does not work, your first statement (first_count = self.storage.count(\"State\") will not be true. Maybe, try testing things incrementally before testing multiple things at once.","created_at":"2018-04-23T21:59:29Z","updated_at":"2018-04-23T21:59:58Z","html_url":"https://github.com/Vilyanare/AirBnB_clone_v3/pull/3#discussion_r183550568","pull_request_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/comments/183550568"},"html":{"href":"https://github.com/Vilyanare/AirBnB_clone_v3/pull/3#discussion_r183550568"},"pull_request":{"href":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/3","id":183567668,"html_url":"https://github.com/Vilyanare/AirBnB_clone_v3/pull/3","diff_url":"https://github.com/Vilyanare/AirBnB_clone_v3/pull/3.diff","patch_url":"https://github.com/Vilyanare/AirBnB_clone_v3/pull/3.patch","issue_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/issues/3","number":3,"state":"open","locked":false,"title":"Storage get count","user":{"login":"RoMalms10","id":25991499,"avatar_url":"https://avatars0.githubusercontent.com/u/25991499?v=4","gravatar_id":"","url":"https://api.github.com/users/RoMalms10","html_url":"https://github.com/RoMalms10","followers_url":"https://api.github.com/users/RoMalms10/followers","following_url":"https://api.github.com/users/RoMalms10/following{/other_user}","gists_url":"https://api.github.com/users/RoMalms10/gists{/gist_id}","starred_url":"https://api.github.com/users/RoMalms10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoMalms10/subscriptions","organizations_url":"https://api.github.com/users/RoMalms10/orgs","repos_url":"https://api.github.com/users/RoMalms10/repos","events_url":"https://api.github.com/users/RoMalms10/events{/privacy}","received_events_url":"https://api.github.com/users/RoMalms10/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-23T21:51:32Z","updated_at":"2018-04-23T21:59:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec0200f1ce3c96e8720e34a990e27e266964dccc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/issues/3/comments","statuses_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/statuses/4479643e80956fa568291091576fa77b47d2efbc","head":{"label":"Vilyanare:storage_get_count","ref":"storage_get_count","sha":"4479643e80956fa568291091576fa77b47d2efbc","user":{"login":"Vilyanare","id":29224351,"avatar_url":"https://avatars1.githubusercontent.com/u/29224351?v=4","gravatar_id":"","url":"https://api.github.com/users/Vilyanare","html_url":"https://github.com/Vilyanare","followers_url":"https://api.github.com/users/Vilyanare/followers","following_url":"https://api.github.com/users/Vilyanare/following{/other_user}","gists_url":"https://api.github.com/users/Vilyanare/gists{/gist_id}","starred_url":"https://api.github.com/users/Vilyanare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vilyanare/subscriptions","organizations_url":"https://api.github.com/users/Vilyanare/orgs","repos_url":"https://api.github.com/users/Vilyanare/repos","events_url":"https://api.github.com/users/Vilyanare/events{/privacy}","received_events_url":"https://api.github.com/users/Vilyanare/received_events","type":"User","site_admin":false},"repo":{"id":130749024,"name":"AirBnB_clone_v3","full_name":"Vilyanare/AirBnB_clone_v3","owner":{"login":"Vilyanare","id":29224351,"avatar_url":"https://avatars1.githubusercontent.com/u/29224351?v=4","gravatar_id":"","url":"https://api.github.com/users/Vilyanare","html_url":"https://github.com/Vilyanare","followers_url":"https://api.github.com/users/Vilyanare/followers","following_url":"https://api.github.com/users/Vilyanare/following{/other_user}","gists_url":"https://api.github.com/users/Vilyanare/gists{/gist_id}","starred_url":"https://api.github.com/users/Vilyanare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vilyanare/subscriptions","organizations_url":"https://api.github.com/users/Vilyanare/orgs","repos_url":"https://api.github.com/users/Vilyanare/repos","events_url":"https://api.github.com/users/Vilyanare/events{/privacy}","received_events_url":"https://api.github.com/users/Vilyanare/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vilyanare/AirBnB_clone_v3","description":null,"fork":true,"url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3","forks_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/forks","keys_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/teams","hooks_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/hooks","issue_events_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/issues/events{/number}","events_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/events","assignees_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/assignees{/user}","branches_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/branches{/branch}","tags_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/tags","blobs_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/statuses/{sha}","languages_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/languages","stargazers_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/stargazers","contributors_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/contributors","subscribers_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/subscribers","subscription_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/subscription","commits_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/contents/{+path}","compare_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/merges","archive_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/downloads","issues_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/issues{/number}","pulls_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls{/number}","milestones_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/milestones{/number}","notifications_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/labels{/name}","releases_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/releases{/id}","deployments_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/deployments","created_at":"2018-04-23T19:53:01Z","updated_at":"2018-04-23T20:42:16Z","pushed_at":"2018-04-23T21:51:34Z","git_url":"git://github.com/Vilyanare/AirBnB_clone_v3.git","ssh_url":"git@github.com:Vilyanare/AirBnB_clone_v3.git","clone_url":"https://github.com/Vilyanare/AirBnB_clone_v3.git","svn_url":"https://github.com/Vilyanare/AirBnB_clone_v3","homepage":null,"size":429,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Vilyanare:master","ref":"master","sha":"e8ae436d23c38f59dff3ac0a9c33aa5513cd9e66","user":{"login":"Vilyanare","id":29224351,"avatar_url":"https://avatars1.githubusercontent.com/u/29224351?v=4","gravatar_id":"","url":"https://api.github.com/users/Vilyanare","html_url":"https://github.com/Vilyanare","followers_url":"https://api.github.com/users/Vilyanare/followers","following_url":"https://api.github.com/users/Vilyanare/following{/other_user}","gists_url":"https://api.github.com/users/Vilyanare/gists{/gist_id}","starred_url":"https://api.github.com/users/Vilyanare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vilyanare/subscriptions","organizations_url":"https://api.github.com/users/Vilyanare/orgs","repos_url":"https://api.github.com/users/Vilyanare/repos","events_url":"https://api.github.com/users/Vilyanare/events{/privacy}","received_events_url":"https://api.github.com/users/Vilyanare/received_events","type":"User","site_admin":false},"repo":{"id":130749024,"name":"AirBnB_clone_v3","full_name":"Vilyanare/AirBnB_clone_v3","owner":{"login":"Vilyanare","id":29224351,"avatar_url":"https://avatars1.githubusercontent.com/u/29224351?v=4","gravatar_id":"","url":"https://api.github.com/users/Vilyanare","html_url":"https://github.com/Vilyanare","followers_url":"https://api.github.com/users/Vilyanare/followers","following_url":"https://api.github.com/users/Vilyanare/following{/other_user}","gists_url":"https://api.github.com/users/Vilyanare/gists{/gist_id}","starred_url":"https://api.github.com/users/Vilyanare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vilyanare/subscriptions","organizations_url":"https://api.github.com/users/Vilyanare/orgs","repos_url":"https://api.github.com/users/Vilyanare/repos","events_url":"https://api.github.com/users/Vilyanare/events{/privacy}","received_events_url":"https://api.github.com/users/Vilyanare/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vilyanare/AirBnB_clone_v3","description":null,"fork":true,"url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3","forks_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/forks","keys_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/teams","hooks_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/hooks","issue_events_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/issues/events{/number}","events_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/events","assignees_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/assignees{/user}","branches_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/branches{/branch}","tags_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/tags","blobs_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/statuses/{sha}","languages_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/languages","stargazers_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/stargazers","contributors_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/contributors","subscribers_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/subscribers","subscription_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/subscription","commits_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/contents/{+path}","compare_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/merges","archive_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/downloads","issues_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/issues{/number}","pulls_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls{/number}","milestones_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/milestones{/number}","notifications_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/labels{/name}","releases_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/releases{/id}","deployments_url":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/deployments","created_at":"2018-04-23T19:53:01Z","updated_at":"2018-04-23T20:42:16Z","pushed_at":"2018-04-23T21:51:34Z","git_url":"git://github.com/Vilyanare/AirBnB_clone_v3.git","ssh_url":"git@github.com:Vilyanare/AirBnB_clone_v3.git","clone_url":"https://github.com/Vilyanare/AirBnB_clone_v3.git","svn_url":"https://github.com/Vilyanare/AirBnB_clone_v3","homepage":null,"size":429,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/3"},"html":{"href":"https://github.com/Vilyanare/AirBnB_clone_v3/pull/3"},"issue":{"href":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/issues/3"},"comments":{"href":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Vilyanare/AirBnB_clone_v3/statuses/4479643e80956fa568291091576fa77b47d2efbc"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"hundalrs"}}