{"action":"created","comment":{"url":"https://api.github.com/repos/PyPila/apof/pulls/comments/97726277","pull_request_review_id":18343397,"id":97726277,"diff_hunk":"@@ -0,0 +1,25 @@\n+from django.test import TestCase\n+from django.urls import reverse\n+\n+from .models import Restaurant\n+\n+\n+class RestaurantTestCase(TestCase):\n+\n+    def test_string_representation(self):\n+        test_restaurant_name = 'Test restaurant name'\n+        self.assertEqual(\n+            str(Restaurant(name=test_restaurant_name)),\n+            test_restaurant_name\n+        )\n+\n+\n+class RestaurantListTestCase(TestCase):\n+\n+    def test_main_page_view_is_restaurants_list_view(self):\n+        self.assertEqual('/', reverse('restaurant-list'))\n+\n+    def test_restaurants_list_view(self):\n+        response = self.client.get(reverse('restaurant-list'))\n+        self.assertEqual(response.status_code, 200)\n+        self.assertTemplateUsed(response, 'restaurants/index.html')","path":"src/restaurants/tests.py","position":28,"original_position":25,"commit_id":"9d6dc3886e3d33c3880036c9008f9626336ab22f","original_commit_id":"b5a097dcab8343ac6cfb5388803a7255ef34f8d1","user":{"login":"8r2y5","id":5288384,"avatar_url":"https://avatars.githubusercontent.com/u/5288384?v=3","gravatar_id":"","url":"https://api.github.com/users/8r2y5","html_url":"https://github.com/8r2y5","followers_url":"https://api.github.com/users/8r2y5/followers","following_url":"https://api.github.com/users/8r2y5/following{/other_user}","gists_url":"https://api.github.com/users/8r2y5/gists{/gist_id}","starred_url":"https://api.github.com/users/8r2y5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8r2y5/subscriptions","organizations_url":"https://api.github.com/users/8r2y5/orgs","repos_url":"https://api.github.com/users/8r2y5/repos","events_url":"https://api.github.com/users/8r2y5/events{/privacy}","received_events_url":"https://api.github.com/users/8r2y5/received_events","type":"User","site_admin":false},"body":"Yes, sure, then please test template that was used in different unit test since you are also testing here `response.status_code` - It will be cleaner.\r\n\r\n\r\n###### P.S. This is ironic.","created_at":"2017-01-25T08:06:11Z","updated_at":"2017-01-25T08:12:19Z","html_url":"https://github.com/PyPila/apof/pull/3#discussion_r97726277","pull_request_url":"https://api.github.com/repos/PyPila/apof/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/PyPila/apof/pulls/comments/97726277"},"html":{"href":"https://github.com/PyPila/apof/pull/3#discussion_r97726277"},"pull_request":{"href":"https://api.github.com/repos/PyPila/apof/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/PyPila/apof/pulls/3","id":102483551,"html_url":"https://github.com/PyPila/apof/pull/3","diff_url":"https://github.com/PyPila/apof/pull/3.diff","patch_url":"https://github.com/PyPila/apof/pull/3.patch","issue_url":"https://api.github.com/repos/PyPila/apof/issues/3","number":3,"state":"open","locked":false,"title":"3 restaurant view list","user":{"login":"wiaterb","id":8410435,"avatar_url":"https://avatars.githubusercontent.com/u/8410435?v=3","gravatar_id":"","url":"https://api.github.com/users/wiaterb","html_url":"https://github.com/wiaterb","followers_url":"https://api.github.com/users/wiaterb/followers","following_url":"https://api.github.com/users/wiaterb/following{/other_user}","gists_url":"https://api.github.com/users/wiaterb/gists{/gist_id}","starred_url":"https://api.github.com/users/wiaterb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiaterb/subscriptions","organizations_url":"https://api.github.com/users/wiaterb/orgs","repos_url":"https://api.github.com/users/wiaterb/repos","events_url":"https://api.github.com/users/wiaterb/events{/privacy}","received_events_url":"https://api.github.com/users/wiaterb/received_events","type":"User","site_admin":false},"body":"# 360 px\r\n![360](https://cloud.githubusercontent.com/assets/8410435/22199912/3d02e130-e15d-11e6-8bf7-dcd74a77e91a.png)\r\n# 768\r\n![768](https://cloud.githubusercontent.com/assets/8410435/22199914/3d304e0e-e15d-11e6-974d-d944c4c4528e.png)\r\n# 800\r\n![800](https://cloud.githubusercontent.com/assets/8410435/22199913/3d263748-e15d-11e6-9d64-0f3c19fc6952.png)\r\n# 1280\r\n![1280](https://cloud.githubusercontent.com/assets/8410435/22199909/3a2ffa10-e15d-11e6-809f-65b88df8e15a.png)","created_at":"2017-01-20T15:35:36Z","updated_at":"2017-01-25T08:12:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9c532282282df20eaeb3afe6996441ed34147a2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PyPila/apof/pulls/3/commits","review_comments_url":"https://api.github.com/repos/PyPila/apof/pulls/3/comments","review_comment_url":"https://api.github.com/repos/PyPila/apof/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PyPila/apof/issues/3/comments","statuses_url":"https://api.github.com/repos/PyPila/apof/statuses/9d6dc3886e3d33c3880036c9008f9626336ab22f","head":{"label":"wiaterb:3-restaurant-view-list","ref":"3-restaurant-view-list","sha":"9d6dc3886e3d33c3880036c9008f9626336ab22f","user":{"login":"wiaterb","id":8410435,"avatar_url":"https://avatars.githubusercontent.com/u/8410435?v=3","gravatar_id":"","url":"https://api.github.com/users/wiaterb","html_url":"https://github.com/wiaterb","followers_url":"https://api.github.com/users/wiaterb/followers","following_url":"https://api.github.com/users/wiaterb/following{/other_user}","gists_url":"https://api.github.com/users/wiaterb/gists{/gist_id}","starred_url":"https://api.github.com/users/wiaterb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiaterb/subscriptions","organizations_url":"https://api.github.com/users/wiaterb/orgs","repos_url":"https://api.github.com/users/wiaterb/repos","events_url":"https://api.github.com/users/wiaterb/events{/privacy}","received_events_url":"https://api.github.com/users/wiaterb/received_events","type":"User","site_admin":false},"repo":{"id":79539571,"name":"apof","full_name":"wiaterb/apof","owner":{"login":"wiaterb","id":8410435,"avatar_url":"https://avatars.githubusercontent.com/u/8410435?v=3","gravatar_id":"","url":"https://api.github.com/users/wiaterb","html_url":"https://github.com/wiaterb","followers_url":"https://api.github.com/users/wiaterb/followers","following_url":"https://api.github.com/users/wiaterb/following{/other_user}","gists_url":"https://api.github.com/users/wiaterb/gists{/gist_id}","starred_url":"https://api.github.com/users/wiaterb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiaterb/subscriptions","organizations_url":"https://api.github.com/users/wiaterb/orgs","repos_url":"https://api.github.com/users/wiaterb/repos","events_url":"https://api.github.com/users/wiaterb/events{/privacy}","received_events_url":"https://api.github.com/users/wiaterb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wiaterb/apof","description":null,"fork":true,"url":"https://api.github.com/repos/wiaterb/apof","forks_url":"https://api.github.com/repos/wiaterb/apof/forks","keys_url":"https://api.github.com/repos/wiaterb/apof/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wiaterb/apof/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wiaterb/apof/teams","hooks_url":"https://api.github.com/repos/wiaterb/apof/hooks","issue_events_url":"https://api.github.com/repos/wiaterb/apof/issues/events{/number}","events_url":"https://api.github.com/repos/wiaterb/apof/events","assignees_url":"https://api.github.com/repos/wiaterb/apof/assignees{/user}","branches_url":"https://api.github.com/repos/wiaterb/apof/branches{/branch}","tags_url":"https://api.github.com/repos/wiaterb/apof/tags","blobs_url":"https://api.github.com/repos/wiaterb/apof/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wiaterb/apof/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wiaterb/apof/git/refs{/sha}","trees_url":"https://api.github.com/repos/wiaterb/apof/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wiaterb/apof/statuses/{sha}","languages_url":"https://api.github.com/repos/wiaterb/apof/languages","stargazers_url":"https://api.github.com/repos/wiaterb/apof/stargazers","contributors_url":"https://api.github.com/repos/wiaterb/apof/contributors","subscribers_url":"https://api.github.com/repos/wiaterb/apof/subscribers","subscription_url":"https://api.github.com/repos/wiaterb/apof/subscription","commits_url":"https://api.github.com/repos/wiaterb/apof/commits{/sha}","git_commits_url":"https://api.github.com/repos/wiaterb/apof/git/commits{/sha}","comments_url":"https://api.github.com/repos/wiaterb/apof/comments{/number}","issue_comment_url":"https://api.github.com/repos/wiaterb/apof/issues/comments{/number}","contents_url":"https://api.github.com/repos/wiaterb/apof/contents/{+path}","compare_url":"https://api.github.com/repos/wiaterb/apof/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wiaterb/apof/merges","archive_url":"https://api.github.com/repos/wiaterb/apof/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wiaterb/apof/downloads","issues_url":"https://api.github.com/repos/wiaterb/apof/issues{/number}","pulls_url":"https://api.github.com/repos/wiaterb/apof/pulls{/number}","milestones_url":"https://api.github.com/repos/wiaterb/apof/milestones{/number}","notifications_url":"https://api.github.com/repos/wiaterb/apof/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wiaterb/apof/labels{/name}","releases_url":"https://api.github.com/repos/wiaterb/apof/releases{/id}","deployments_url":"https://api.github.com/repos/wiaterb/apof/deployments","created_at":"2017-01-20T08:11:30Z","updated_at":"2017-01-20T08:11:31Z","pushed_at":"2017-01-25T08:09:38Z","git_url":"git://github.com/wiaterb/apof.git","ssh_url":"git@github.com:wiaterb/apof.git","clone_url":"https://github.com/wiaterb/apof.git","svn_url":"https://github.com/wiaterb/apof","homepage":null,"size":57,"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":"master"}},"base":{"label":"PyPila:master","ref":"master","sha":"427718290c4f7c4277d624ae448bd9e78128fd9f","user":{"login":"PyPila","id":13901342,"avatar_url":"https://avatars.githubusercontent.com/u/13901342?v=3","gravatar_id":"","url":"https://api.github.com/users/PyPila","html_url":"https://github.com/PyPila","followers_url":"https://api.github.com/users/PyPila/followers","following_url":"https://api.github.com/users/PyPila/following{/other_user}","gists_url":"https://api.github.com/users/PyPila/gists{/gist_id}","starred_url":"https://api.github.com/users/PyPila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyPila/subscriptions","organizations_url":"https://api.github.com/users/PyPila/orgs","repos_url":"https://api.github.com/users/PyPila/repos","events_url":"https://api.github.com/users/PyPila/events{/privacy}","received_events_url":"https://api.github.com/users/PyPila/received_events","type":"Organization","site_admin":false},"repo":{"id":77298213,"name":"apof","full_name":"PyPila/apof","owner":{"login":"PyPila","id":13901342,"avatar_url":"https://avatars.githubusercontent.com/u/13901342?v=3","gravatar_id":"","url":"https://api.github.com/users/PyPila","html_url":"https://github.com/PyPila","followers_url":"https://api.github.com/users/PyPila/followers","following_url":"https://api.github.com/users/PyPila/following{/other_user}","gists_url":"https://api.github.com/users/PyPila/gists{/gist_id}","starred_url":"https://api.github.com/users/PyPila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyPila/subscriptions","organizations_url":"https://api.github.com/users/PyPila/orgs","repos_url":"https://api.github.com/users/PyPila/repos","events_url":"https://api.github.com/users/PyPila/events{/privacy}","received_events_url":"https://api.github.com/users/PyPila/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PyPila/apof","description":null,"fork":false,"url":"https://api.github.com/repos/PyPila/apof","forks_url":"https://api.github.com/repos/PyPila/apof/forks","keys_url":"https://api.github.com/repos/PyPila/apof/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyPila/apof/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyPila/apof/teams","hooks_url":"https://api.github.com/repos/PyPila/apof/hooks","issue_events_url":"https://api.github.com/repos/PyPila/apof/issues/events{/number}","events_url":"https://api.github.com/repos/PyPila/apof/events","assignees_url":"https://api.github.com/repos/PyPila/apof/assignees{/user}","branches_url":"https://api.github.com/repos/PyPila/apof/branches{/branch}","tags_url":"https://api.github.com/repos/PyPila/apof/tags","blobs_url":"https://api.github.com/repos/PyPila/apof/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyPila/apof/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyPila/apof/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyPila/apof/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyPila/apof/statuses/{sha}","languages_url":"https://api.github.com/repos/PyPila/apof/languages","stargazers_url":"https://api.github.com/repos/PyPila/apof/stargazers","contributors_url":"https://api.github.com/repos/PyPila/apof/contributors","subscribers_url":"https://api.github.com/repos/PyPila/apof/subscribers","subscription_url":"https://api.github.com/repos/PyPila/apof/subscription","commits_url":"https://api.github.com/repos/PyPila/apof/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyPila/apof/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyPila/apof/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyPila/apof/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyPila/apof/contents/{+path}","compare_url":"https://api.github.com/repos/PyPila/apof/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyPila/apof/merges","archive_url":"https://api.github.com/repos/PyPila/apof/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyPila/apof/downloads","issues_url":"https://api.github.com/repos/PyPila/apof/issues{/number}","pulls_url":"https://api.github.com/repos/PyPila/apof/pulls{/number}","milestones_url":"https://api.github.com/repos/PyPila/apof/milestones{/number}","notifications_url":"https://api.github.com/repos/PyPila/apof/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyPila/apof/labels{/name}","releases_url":"https://api.github.com/repos/PyPila/apof/releases{/id}","deployments_url":"https://api.github.com/repos/PyPila/apof/deployments","created_at":"2016-12-24T19:51:35Z","updated_at":"2016-12-24T19:52:21Z","pushed_at":"2017-01-25T08:09:39Z","git_url":"git://github.com/PyPila/apof.git","ssh_url":"git@github.com:PyPila/apof.git","clone_url":"https://github.com/PyPila/apof.git","svn_url":"https://github.com/PyPila/apof","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PyPila/apof/pulls/3"},"html":{"href":"https://github.com/PyPila/apof/pull/3"},"issue":{"href":"https://api.github.com/repos/PyPila/apof/issues/3"},"comments":{"href":"https://api.github.com/repos/PyPila/apof/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/PyPila/apof/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/PyPila/apof/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PyPila/apof/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/PyPila/apof/statuses/9d6dc3886e3d33c3880036c9008f9626336ab22f"}}}}
{"actor":{"display_login":"8r2y5"}}