{"action":"created","comment":{"url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/comments/28110086","id":28110086,"diff_hunk":"@@ -0,0 +1,244 @@\n+# coding=utf-8\n+import unittest\n+from pages.page import PageObject\n+import pages\n+import config\n+import os\n+\n+TITLE_BOUNDARY = 250\n+\n+#true cases\n+class PostCreateTestCase(unittest.TestCase):\n+    def setUp(self):\n+        self.topic = PageObject()\n+        self.topic.login(config.LOGIN)\n+        self.topic.go_to_topic_edit()\n+\n+    def tearDown(self):\n+        self.topic.remove()\n+        self.topic.close()\n+\n+    def test_create_ok(self):\n+        text = config.SOME_TEXT\n+        self.topic.select_blog_by_id(\"Флудилка\")\n+        self.topic.set_title(config.TITLE)\n+        self.topic.set_main_text(text)\n+        self.topic.save()\n+        self.assertEqual(self.topic.get_content(), text)\n+\n+    def test_create_title_boundary(self):\n+        self.topic.select_blog_by_id('Флудилка')\n+        self.topic.set_title('x' * TITLE_BOUNDARY)\n+        self.topic.set_main_text('sample text')\n+        self.topic.save()\n+        self.assertEqual(self.topic.get_title(), 'x' * TITLE_BOUNDARY)\n+\n+######ERROOOR UNCOMENT TO FAIL TEST#################3WEB SITE IS BROKEN\n+    # def test_create_with_poll(self):\n+    #     self.topic.select_blog_by_id('Флудилка')\n+    #     self.topic.set_title('test')\n+    #     self.topic.set_main_text('text very long')\n+    #     question = 'Question'\n+    #     answer1 = 'answer No. 1'\n+    #     answer2 = 'answer 7'\n+    #     self.topic.add_poll(question, answer1, answer2)\n+    #     self.topic.save()\n+    #     ans1, ans2 = self.topic.find_poll()\n+    #     self.assertEqual(ans1, answer1)\n+    #     self.assertEqual(ans2, answer2)","path":"tests/test_create.py","position":48,"original_position":48,"commit_id":"6fdce27a2835b4363f4b57336f18d3dbf415ac06","original_commit_id":"6fdce27a2835b4363f4b57336f18d3dbf415ac06","user":{"login":"dkotegov","id":11413412,"avatar_url":"https://avatars.githubusercontent.com/u/11413412?v=3","gravatar_id":"","url":"https://api.github.com/users/dkotegov","html_url":"https://github.com/dkotegov","followers_url":"https://api.github.com/users/dkotegov/followers","following_url":"https://api.github.com/users/dkotegov/following{/other_user}","gists_url":"https://api.github.com/users/dkotegov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkotegov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkotegov/subscriptions","organizations_url":"https://api.github.com/users/dkotegov/orgs","repos_url":"https://api.github.com/users/dkotegov/repos","events_url":"https://api.github.com/users/dkotegov/events{/privacy}","received_events_url":"https://api.github.com/users/dkotegov/received_events","type":"User","site_admin":false},"body":"А расскажите, что значит \"WEB SITE IS BROKEN\"?","created_at":"2015-04-09T22:45:51Z","updated_at":"2015-04-09T22:45:51Z","html_url":"https://github.com/dkotegov/home-assignment-2/pull/14#discussion_r28110086","pull_request_url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/comments/28110086"},"html":{"href":"https://github.com/dkotegov/home-assignment-2/pull/14#discussion_r28110086"},"pull_request":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/14","id":32999861,"html_url":"https://github.com/dkotegov/home-assignment-2/pull/14","diff_url":"https://github.com/dkotegov/home-assignment-2/pull/14.diff","patch_url":"https://github.com/dkotegov/home-assignment-2/pull/14.patch","issue_url":"https://api.github.com/repos/dkotegov/home-assignment-2/issues/14","number":14,"state":"open","locked":false,"title":"ДЗ2","user":{"login":"mid135","id":7269946,"avatar_url":"https://avatars.githubusercontent.com/u/7269946?v=3","gravatar_id":"","url":"https://api.github.com/users/mid135","html_url":"https://github.com/mid135","followers_url":"https://api.github.com/users/mid135/followers","following_url":"https://api.github.com/users/mid135/following{/other_user}","gists_url":"https://api.github.com/users/mid135/gists{/gist_id}","starred_url":"https://api.github.com/users/mid135/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mid135/subscriptions","organizations_url":"https://api.github.com/users/mid135/orgs","repos_url":"https://api.github.com/users/mid135/repos","events_url":"https://api.github.com/users/mid135/events{/privacy}","received_events_url":"https://api.github.com/users/mid135/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-09T21:48:34Z","updated_at":"2015-04-09T22:45:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b5f0bf378bac33c8245d0587f401b3dac324e88","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/14/commits","review_comments_url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/14/comments","review_comment_url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dkotegov/home-assignment-2/issues/14/comments","statuses_url":"https://api.github.com/repos/dkotegov/home-assignment-2/statuses/6fdce27a2835b4363f4b57336f18d3dbf415ac06","head":{"label":"mid135:master","ref":"master","sha":"6fdce27a2835b4363f4b57336f18d3dbf415ac06","user":{"login":"mid135","id":7269946,"avatar_url":"https://avatars.githubusercontent.com/u/7269946?v=3","gravatar_id":"","url":"https://api.github.com/users/mid135","html_url":"https://github.com/mid135","followers_url":"https://api.github.com/users/mid135/followers","following_url":"https://api.github.com/users/mid135/following{/other_user}","gists_url":"https://api.github.com/users/mid135/gists{/gist_id}","starred_url":"https://api.github.com/users/mid135/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mid135/subscriptions","organizations_url":"https://api.github.com/users/mid135/orgs","repos_url":"https://api.github.com/users/mid135/repos","events_url":"https://api.github.com/users/mid135/events{/privacy}","received_events_url":"https://api.github.com/users/mid135/received_events","type":"User","site_admin":false},"repo":{"id":32872141,"name":"home-assignment-2","full_name":"mid135/home-assignment-2","owner":{"login":"mid135","id":7269946,"avatar_url":"https://avatars.githubusercontent.com/u/7269946?v=3","gravatar_id":"","url":"https://api.github.com/users/mid135","html_url":"https://github.com/mid135","followers_url":"https://api.github.com/users/mid135/followers","following_url":"https://api.github.com/users/mid135/following{/other_user}","gists_url":"https://api.github.com/users/mid135/gists{/gist_id}","starred_url":"https://api.github.com/users/mid135/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mid135/subscriptions","organizations_url":"https://api.github.com/users/mid135/orgs","repos_url":"https://api.github.com/users/mid135/repos","events_url":"https://api.github.com/users/mid135/events{/privacy}","received_events_url":"https://api.github.com/users/mid135/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mid135/home-assignment-2","description":"","fork":true,"url":"https://api.github.com/repos/mid135/home-assignment-2","forks_url":"https://api.github.com/repos/mid135/home-assignment-2/forks","keys_url":"https://api.github.com/repos/mid135/home-assignment-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mid135/home-assignment-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mid135/home-assignment-2/teams","hooks_url":"https://api.github.com/repos/mid135/home-assignment-2/hooks","issue_events_url":"https://api.github.com/repos/mid135/home-assignment-2/issues/events{/number}","events_url":"https://api.github.com/repos/mid135/home-assignment-2/events","assignees_url":"https://api.github.com/repos/mid135/home-assignment-2/assignees{/user}","branches_url":"https://api.github.com/repos/mid135/home-assignment-2/branches{/branch}","tags_url":"https://api.github.com/repos/mid135/home-assignment-2/tags","blobs_url":"https://api.github.com/repos/mid135/home-assignment-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mid135/home-assignment-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mid135/home-assignment-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/mid135/home-assignment-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mid135/home-assignment-2/statuses/{sha}","languages_url":"https://api.github.com/repos/mid135/home-assignment-2/languages","stargazers_url":"https://api.github.com/repos/mid135/home-assignment-2/stargazers","contributors_url":"https://api.github.com/repos/mid135/home-assignment-2/contributors","subscribers_url":"https://api.github.com/repos/mid135/home-assignment-2/subscribers","subscription_url":"https://api.github.com/repos/mid135/home-assignment-2/subscription","commits_url":"https://api.github.com/repos/mid135/home-assignment-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/mid135/home-assignment-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/mid135/home-assignment-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/mid135/home-assignment-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/mid135/home-assignment-2/contents/{+path}","compare_url":"https://api.github.com/repos/mid135/home-assignment-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mid135/home-assignment-2/merges","archive_url":"https://api.github.com/repos/mid135/home-assignment-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mid135/home-assignment-2/downloads","issues_url":"https://api.github.com/repos/mid135/home-assignment-2/issues{/number}","pulls_url":"https://api.github.com/repos/mid135/home-assignment-2/pulls{/number}","milestones_url":"https://api.github.com/repos/mid135/home-assignment-2/milestones{/number}","notifications_url":"https://api.github.com/repos/mid135/home-assignment-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mid135/home-assignment-2/labels{/name}","releases_url":"https://api.github.com/repos/mid135/home-assignment-2/releases{/id}","created_at":"2015-03-25T15:09:23Z","updated_at":"2015-04-09T22:10:16Z","pushed_at":"2015-04-09T22:10:16Z","git_url":"git://github.com/mid135/home-assignment-2.git","ssh_url":"git@github.com:mid135/home-assignment-2.git","clone_url":"https://github.com/mid135/home-assignment-2.git","svn_url":"https://github.com/mid135/home-assignment-2","homepage":null,"size":34138,"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":"dkotegov:master","ref":"master","sha":"4b61194ff06e0df05440c884d512a395639ddedb","user":{"login":"dkotegov","id":11413412,"avatar_url":"https://avatars.githubusercontent.com/u/11413412?v=3","gravatar_id":"","url":"https://api.github.com/users/dkotegov","html_url":"https://github.com/dkotegov","followers_url":"https://api.github.com/users/dkotegov/followers","following_url":"https://api.github.com/users/dkotegov/following{/other_user}","gists_url":"https://api.github.com/users/dkotegov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkotegov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkotegov/subscriptions","organizations_url":"https://api.github.com/users/dkotegov/orgs","repos_url":"https://api.github.com/users/dkotegov/repos","events_url":"https://api.github.com/users/dkotegov/events{/privacy}","received_events_url":"https://api.github.com/users/dkotegov/received_events","type":"User","site_admin":false},"repo":{"id":31986215,"name":"home-assignment-2","full_name":"dkotegov/home-assignment-2","owner":{"login":"dkotegov","id":11413412,"avatar_url":"https://avatars.githubusercontent.com/u/11413412?v=3","gravatar_id":"","url":"https://api.github.com/users/dkotegov","html_url":"https://github.com/dkotegov","followers_url":"https://api.github.com/users/dkotegov/followers","following_url":"https://api.github.com/users/dkotegov/following{/other_user}","gists_url":"https://api.github.com/users/dkotegov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkotegov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkotegov/subscriptions","organizations_url":"https://api.github.com/users/dkotegov/orgs","repos_url":"https://api.github.com/users/dkotegov/repos","events_url":"https://api.github.com/users/dkotegov/events{/privacy}","received_events_url":"https://api.github.com/users/dkotegov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dkotegov/home-assignment-2","description":"","fork":false,"url":"https://api.github.com/repos/dkotegov/home-assignment-2","forks_url":"https://api.github.com/repos/dkotegov/home-assignment-2/forks","keys_url":"https://api.github.com/repos/dkotegov/home-assignment-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dkotegov/home-assignment-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dkotegov/home-assignment-2/teams","hooks_url":"https://api.github.com/repos/dkotegov/home-assignment-2/hooks","issue_events_url":"https://api.github.com/repos/dkotegov/home-assignment-2/issues/events{/number}","events_url":"https://api.github.com/repos/dkotegov/home-assignment-2/events","assignees_url":"https://api.github.com/repos/dkotegov/home-assignment-2/assignees{/user}","branches_url":"https://api.github.com/repos/dkotegov/home-assignment-2/branches{/branch}","tags_url":"https://api.github.com/repos/dkotegov/home-assignment-2/tags","blobs_url":"https://api.github.com/repos/dkotegov/home-assignment-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dkotegov/home-assignment-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dkotegov/home-assignment-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/dkotegov/home-assignment-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dkotegov/home-assignment-2/statuses/{sha}","languages_url":"https://api.github.com/repos/dkotegov/home-assignment-2/languages","stargazers_url":"https://api.github.com/repos/dkotegov/home-assignment-2/stargazers","contributors_url":"https://api.github.com/repos/dkotegov/home-assignment-2/contributors","subscribers_url":"https://api.github.com/repos/dkotegov/home-assignment-2/subscribers","subscription_url":"https://api.github.com/repos/dkotegov/home-assignment-2/subscription","commits_url":"https://api.github.com/repos/dkotegov/home-assignment-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/dkotegov/home-assignment-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/dkotegov/home-assignment-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/dkotegov/home-assignment-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/dkotegov/home-assignment-2/contents/{+path}","compare_url":"https://api.github.com/repos/dkotegov/home-assignment-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dkotegov/home-assignment-2/merges","archive_url":"https://api.github.com/repos/dkotegov/home-assignment-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dkotegov/home-assignment-2/downloads","issues_url":"https://api.github.com/repos/dkotegov/home-assignment-2/issues{/number}","pulls_url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls{/number}","milestones_url":"https://api.github.com/repos/dkotegov/home-assignment-2/milestones{/number}","notifications_url":"https://api.github.com/repos/dkotegov/home-assignment-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dkotegov/home-assignment-2/labels{/name}","releases_url":"https://api.github.com/repos/dkotegov/home-assignment-2/releases{/id}","created_at":"2015-03-10T22:53:25Z","updated_at":"2015-03-11T00:15:40Z","pushed_at":"2015-04-09T22:10:17Z","git_url":"git://github.com/dkotegov/home-assignment-2.git","ssh_url":"git@github.com:dkotegov/home-assignment-2.git","clone_url":"https://github.com/dkotegov/home-assignment-2.git","svn_url":"https://github.com/dkotegov/home-assignment-2","homepage":null,"size":43440,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":2,"forks":17,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/14"},"html":{"href":"https://github.com/dkotegov/home-assignment-2/pull/14"},"issue":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/issues/14"},"comments":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/statuses/6fdce27a2835b4363f4b57336f18d3dbf415ac06"}}}}