{"action":"created","comment":{"url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/comments/27435003","id":27435003,"diff_hunk":"@@ -0,0 +1,233 @@\n+# _*_ coding: utf-8 _*_\n+__author__ = 'max'\n+import unittest\n+from selenium import webdriver\n+from selenium.webdriver.common.desired_capabilities import DesiredCapabilities\n+from utils import *\n+from page_objects.action import Action\n+\n+\n+class MainTestCase(unittest.TestCase):\n+    def setUp(self):\n+        driver = webdriver.Remote(\n+            command_executor=COMMAND_EXECUTOR_URL,\n+            desired_capabilities=getattr(DesiredCapabilities, BROWSER).copy())\n+        self.action = Action(driver)\n+        main_page = MainPage(self.action)\n+        main_page.open()\n+        main_page.auth(LOGIN)\n+        self.username = TopMenuPage(self.action).get_username()\n+        self.post_created = True\n+\n+    @not_create_topic\n+    def test_auth(self):\n+        self.assertEqual(self.username, USERNAME)","path":"tests/test_main.py","position":24,"original_position":24,"commit_id":"647d2787be41f31534c6d10b0023725437cfd42f","original_commit_id":"647d2787be41f31534c6d10b0023725437cfd42f","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":"В тесте на авторизацию, должна быть авторизация ;)","created_at":"2015-03-30T21:42:50Z","updated_at":"2015-03-30T21:42:50Z","html_url":"https://github.com/dkotegov/home-assignment-2/pull/2#discussion_r27435003","pull_request_url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/comments/27435003"},"html":{"href":"https://github.com/dkotegov/home-assignment-2/pull/2#discussion_r27435003"},"pull_request":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/2","id":32262229,"html_url":"https://github.com/dkotegov/home-assignment-2/pull/2","diff_url":"https://github.com/dkotegov/home-assignment-2/pull/2.diff","patch_url":"https://github.com/dkotegov/home-assignment-2/pull/2.patch","issue_url":"https://api.github.com/repos/dkotegov/home-assignment-2/issues/2","number":2,"state":"open","locked":false,"title":"ДЗ №2 ревью","user":{"login":"streambuf","id":8266560,"avatar_url":"https://avatars.githubusercontent.com/u/8266560?v=3","gravatar_id":"","url":"https://api.github.com/users/streambuf","html_url":"https://github.com/streambuf","followers_url":"https://api.github.com/users/streambuf/followers","following_url":"https://api.github.com/users/streambuf/following{/other_user}","gists_url":"https://api.github.com/users/streambuf/gists{/gist_id}","starred_url":"https://api.github.com/users/streambuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/streambuf/subscriptions","organizations_url":"https://api.github.com/users/streambuf/orgs","repos_url":"https://api.github.com/users/streambuf/repos","events_url":"https://api.github.com/users/streambuf/events{/privacy}","received_events_url":"https://api.github.com/users/streambuf/received_events","type":"User","site_admin":false},"body":"Chrome проходит все тесты.\r\nFirefox не все, т.к. портал содержит баги при работе через Firefox, например если добавлять ссылку - он выводит ее как текст и с картинкой вроде тоже самое.\r\n","created_at":"2015-03-30T20:08:54Z","updated_at":"2015-03-30T21:42:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b074e6d9be1af62ebf38a188558114e4ae0101db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/2/commits","review_comments_url":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/2/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/2/comments","statuses_url":"https://api.github.com/repos/dkotegov/home-assignment-2/statuses/647d2787be41f31534c6d10b0023725437cfd42f","head":{"label":"streambuf:master","ref":"master","sha":"647d2787be41f31534c6d10b0023725437cfd42f","user":{"login":"streambuf","id":8266560,"avatar_url":"https://avatars.githubusercontent.com/u/8266560?v=3","gravatar_id":"","url":"https://api.github.com/users/streambuf","html_url":"https://github.com/streambuf","followers_url":"https://api.github.com/users/streambuf/followers","following_url":"https://api.github.com/users/streambuf/following{/other_user}","gists_url":"https://api.github.com/users/streambuf/gists{/gist_id}","starred_url":"https://api.github.com/users/streambuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/streambuf/subscriptions","organizations_url":"https://api.github.com/users/streambuf/orgs","repos_url":"https://api.github.com/users/streambuf/repos","events_url":"https://api.github.com/users/streambuf/events{/privacy}","received_events_url":"https://api.github.com/users/streambuf/received_events","type":"User","site_admin":false},"repo":{"id":32803936,"name":"home-assignment-2","full_name":"streambuf/home-assignment-2","owner":{"login":"streambuf","id":8266560,"avatar_url":"https://avatars.githubusercontent.com/u/8266560?v=3","gravatar_id":"","url":"https://api.github.com/users/streambuf","html_url":"https://github.com/streambuf","followers_url":"https://api.github.com/users/streambuf/followers","following_url":"https://api.github.com/users/streambuf/following{/other_user}","gists_url":"https://api.github.com/users/streambuf/gists{/gist_id}","starred_url":"https://api.github.com/users/streambuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/streambuf/subscriptions","organizations_url":"https://api.github.com/users/streambuf/orgs","repos_url":"https://api.github.com/users/streambuf/repos","events_url":"https://api.github.com/users/streambuf/events{/privacy}","received_events_url":"https://api.github.com/users/streambuf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/streambuf/home-assignment-2","description":"Selenium tests | python","fork":true,"url":"https://api.github.com/repos/streambuf/home-assignment-2","forks_url":"https://api.github.com/repos/streambuf/home-assignment-2/forks","keys_url":"https://api.github.com/repos/streambuf/home-assignment-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/streambuf/home-assignment-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/streambuf/home-assignment-2/teams","hooks_url":"https://api.github.com/repos/streambuf/home-assignment-2/hooks","issue_events_url":"https://api.github.com/repos/streambuf/home-assignment-2/issues/events{/number}","events_url":"https://api.github.com/repos/streambuf/home-assignment-2/events","assignees_url":"https://api.github.com/repos/streambuf/home-assignment-2/assignees{/user}","branches_url":"https://api.github.com/repos/streambuf/home-assignment-2/branches{/branch}","tags_url":"https://api.github.com/repos/streambuf/home-assignment-2/tags","blobs_url":"https://api.github.com/repos/streambuf/home-assignment-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/streambuf/home-assignment-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/streambuf/home-assignment-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/streambuf/home-assignment-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/streambuf/home-assignment-2/statuses/{sha}","languages_url":"https://api.github.com/repos/streambuf/home-assignment-2/languages","stargazers_url":"https://api.github.com/repos/streambuf/home-assignment-2/stargazers","contributors_url":"https://api.github.com/repos/streambuf/home-assignment-2/contributors","subscribers_url":"https://api.github.com/repos/streambuf/home-assignment-2/subscribers","subscription_url":"https://api.github.com/repos/streambuf/home-assignment-2/subscription","commits_url":"https://api.github.com/repos/streambuf/home-assignment-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/streambuf/home-assignment-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/streambuf/home-assignment-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/streambuf/home-assignment-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/streambuf/home-assignment-2/contents/{+path}","compare_url":"https://api.github.com/repos/streambuf/home-assignment-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/streambuf/home-assignment-2/merges","archive_url":"https://api.github.com/repos/streambuf/home-assignment-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/streambuf/home-assignment-2/downloads","issues_url":"https://api.github.com/repos/streambuf/home-assignment-2/issues{/number}","pulls_url":"https://api.github.com/repos/streambuf/home-assignment-2/pulls{/number}","milestones_url":"https://api.github.com/repos/streambuf/home-assignment-2/milestones{/number}","notifications_url":"https://api.github.com/repos/streambuf/home-assignment-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/streambuf/home-assignment-2/labels{/name}","releases_url":"https://api.github.com/repos/streambuf/home-assignment-2/releases{/id}","created_at":"2015-03-24T14:31:29Z","updated_at":"2015-03-30T20:05:49Z","pushed_at":"2015-03-30T20:05:49Z","git_url":"git://github.com/streambuf/home-assignment-2.git","ssh_url":"git@github.com:streambuf/home-assignment-2.git","clone_url":"https://github.com/streambuf/home-assignment-2.git","svn_url":"https://github.com/streambuf/home-assignment-2","homepage":"","size":128,"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-03-30T20:08:54Z","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":200,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":2,"forks":14,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/2"},"html":{"href":"https://github.com/dkotegov/home-assignment-2/pull/2"},"issue":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/issues/2"},"comments":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/pulls/2/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/2/commits"},"statuses":{"href":"https://api.github.com/repos/dkotegov/home-assignment-2/statuses/647d2787be41f31534c6d10b0023725437cfd42f"}}}}