{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments/45231485","id":45231485,"diff_hunk":"@@ -0,0 +1,33 @@\n+# This Source Code Form is subject to the terms of the Mozilla Public\n+# License, v. 2.0. If a copy of the MPL was not distributed with this\n+# file, You can obtain one at http://mozilla.org/MPL/2.0/.\n+import json\n+import time\n+import urllib2\n+\n+","path":"firefox_services_tests/helpers/utils.py","position":8,"original_position":8,"commit_id":"da6f39556579f3971fbb6f5985962ae922374f4a","original_commit_id":"da6f39556579f3971fbb6f5985962ae922374f4a","user":{"login":"AutomatedTester","id":128518,"avatar_url":"https://avatars.githubusercontent.com/u/128518?v=3","gravatar_id":"","url":"https://api.github.com/users/AutomatedTester","html_url":"https://github.com/AutomatedTester","followers_url":"https://api.github.com/users/AutomatedTester/followers","following_url":"https://api.github.com/users/AutomatedTester/following{/other_user}","gists_url":"https://api.github.com/users/AutomatedTester/gists{/gist_id}","starred_url":"https://api.github.com/users/AutomatedTester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AutomatedTester/subscriptions","organizations_url":"https://api.github.com/users/AutomatedTester/orgs","repos_url":"https://api.github.com/users/AutomatedTester/repos","events_url":"https://api.github.com/users/AutomatedTester/events{/privacy}","received_events_url":"https://api.github.com/users/AutomatedTester/received_events","type":"User","site_admin":false},"body":"SInce these are all `staticmethod`s , you don't need to have them in a class. Python treats each file as a module so you can do remove `ServiceUtils.*` type calls below and just call the method directly. \r\n\r\nIn the code that uses the class you just call it directly off the module\r\n\r\nso\r\n```python\r\nfrom firefox_services_tests.helpers.utils import ServiceUtils\r\nServiceUtils.some_method\r\n``` \r\nchanges to \r\n```python\r\nfrom firefox_services_tests.helpers import utils\r\nutils.some_method\r\n```\r\n","created_at":"2015-11-18T17:32:42Z","updated_at":"2015-11-18T17:32:42Z","html_url":"https://github.com/mozilla/firefox-ui-tests/pull/287#discussion_r45231485","pull_request_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/287","_links":{"self":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments/45231485"},"html":{"href":"https://github.com/mozilla/firefox-ui-tests/pull/287#discussion_r45231485"},"pull_request":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/287"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/287","id":50876531,"html_url":"https://github.com/mozilla/firefox-ui-tests/pull/287","diff_url":"https://github.com/mozilla/firefox-ui-tests/pull/287.diff","patch_url":"https://github.com/mozilla/firefox-ui-tests/pull/287.patch","issue_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/287","number":287,"state":"open","locked":false,"title":"Bug 1224781 - [services-marionette] Build out Marionette Test Infrastructure r=whimboo","user":{"login":"silne30","id":1432078,"avatar_url":"https://avatars.githubusercontent.com/u/1432078?v=3","gravatar_id":"","url":"https://api.github.com/users/silne30","html_url":"https://github.com/silne30","followers_url":"https://api.github.com/users/silne30/followers","following_url":"https://api.github.com/users/silne30/following{/other_user}","gists_url":"https://api.github.com/users/silne30/gists{/gist_id}","starred_url":"https://api.github.com/users/silne30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silne30/subscriptions","organizations_url":"https://api.github.com/users/silne30/orgs","repos_url":"https://api.github.com/users/silne30/repos","events_url":"https://api.github.com/users/silne30/events{/privacy}","received_events_url":"https://api.github.com/users/silne30/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-16T22:32:51Z","updated_at":"2015-11-18T17:32:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"511412a58f3d81f2b0d6c011aa6e4e2c758d2e2c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/287/commits","review_comments_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/287/comments","review_comment_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/287/comments","statuses_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/statuses/da6f39556579f3971fbb6f5985962ae922374f4a","head":{"label":"silne30:Bug_1224781_Build_Marionette_Test_Infrastructure","ref":"Bug_1224781_Build_Marionette_Test_Infrastructure","sha":"da6f39556579f3971fbb6f5985962ae922374f4a","user":{"login":"silne30","id":1432078,"avatar_url":"https://avatars.githubusercontent.com/u/1432078?v=3","gravatar_id":"","url":"https://api.github.com/users/silne30","html_url":"https://github.com/silne30","followers_url":"https://api.github.com/users/silne30/followers","following_url":"https://api.github.com/users/silne30/following{/other_user}","gists_url":"https://api.github.com/users/silne30/gists{/gist_id}","starred_url":"https://api.github.com/users/silne30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silne30/subscriptions","organizations_url":"https://api.github.com/users/silne30/orgs","repos_url":"https://api.github.com/users/silne30/repos","events_url":"https://api.github.com/users/silne30/events{/privacy}","received_events_url":"https://api.github.com/users/silne30/received_events","type":"User","site_admin":false},"repo":{"id":45710486,"name":"firefox-ui-tests","full_name":"silne30/firefox-ui-tests","owner":{"login":"silne30","id":1432078,"avatar_url":"https://avatars.githubusercontent.com/u/1432078?v=3","gravatar_id":"","url":"https://api.github.com/users/silne30","html_url":"https://github.com/silne30","followers_url":"https://api.github.com/users/silne30/followers","following_url":"https://api.github.com/users/silne30/following{/other_user}","gists_url":"https://api.github.com/users/silne30/gists{/gist_id}","starred_url":"https://api.github.com/users/silne30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silne30/subscriptions","organizations_url":"https://api.github.com/users/silne30/orgs","repos_url":"https://api.github.com/users/silne30/repos","events_url":"https://api.github.com/users/silne30/events{/privacy}","received_events_url":"https://api.github.com/users/silne30/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/silne30/firefox-ui-tests","description":"","fork":true,"url":"https://api.github.com/repos/silne30/firefox-ui-tests","forks_url":"https://api.github.com/repos/silne30/firefox-ui-tests/forks","keys_url":"https://api.github.com/repos/silne30/firefox-ui-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silne30/firefox-ui-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silne30/firefox-ui-tests/teams","hooks_url":"https://api.github.com/repos/silne30/firefox-ui-tests/hooks","issue_events_url":"https://api.github.com/repos/silne30/firefox-ui-tests/issues/events{/number}","events_url":"https://api.github.com/repos/silne30/firefox-ui-tests/events","assignees_url":"https://api.github.com/repos/silne30/firefox-ui-tests/assignees{/user}","branches_url":"https://api.github.com/repos/silne30/firefox-ui-tests/branches{/branch}","tags_url":"https://api.github.com/repos/silne30/firefox-ui-tests/tags","blobs_url":"https://api.github.com/repos/silne30/firefox-ui-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silne30/firefox-ui-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silne30/firefox-ui-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/silne30/firefox-ui-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silne30/firefox-ui-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/silne30/firefox-ui-tests/languages","stargazers_url":"https://api.github.com/repos/silne30/firefox-ui-tests/stargazers","contributors_url":"https://api.github.com/repos/silne30/firefox-ui-tests/contributors","subscribers_url":"https://api.github.com/repos/silne30/firefox-ui-tests/subscribers","subscription_url":"https://api.github.com/repos/silne30/firefox-ui-tests/subscription","commits_url":"https://api.github.com/repos/silne30/firefox-ui-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/silne30/firefox-ui-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/silne30/firefox-ui-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/silne30/firefox-ui-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/silne30/firefox-ui-tests/contents/{+path}","compare_url":"https://api.github.com/repos/silne30/firefox-ui-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silne30/firefox-ui-tests/merges","archive_url":"https://api.github.com/repos/silne30/firefox-ui-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silne30/firefox-ui-tests/downloads","issues_url":"https://api.github.com/repos/silne30/firefox-ui-tests/issues{/number}","pulls_url":"https://api.github.com/repos/silne30/firefox-ui-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/silne30/firefox-ui-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/silne30/firefox-ui-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silne30/firefox-ui-tests/labels{/name}","releases_url":"https://api.github.com/repos/silne30/firefox-ui-tests/releases{/id}","created_at":"2015-11-06T22:06:50Z","updated_at":"2015-11-06T22:06:51Z","pushed_at":"2015-11-17T17:33:42Z","git_url":"git://github.com/silne30/firefox-ui-tests.git","ssh_url":"git@github.com:silne30/firefox-ui-tests.git","clone_url":"https://github.com/silne30/firefox-ui-tests.git","svn_url":"https://github.com/silne30/firefox-ui-tests","homepage":null,"size":626,"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":"mozilla-central"}},"base":{"label":"mozilla:mozilla-central","ref":"mozilla-central","sha":"68f6311855ef087beea20e6c5bc2f1a68ccdba7b","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":25004372,"name":"firefox-ui-tests","full_name":"mozilla/firefox-ui-tests","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/firefox-ui-tests","description":"","fork":false,"url":"https://api.github.com/repos/mozilla/firefox-ui-tests","forks_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/forks","keys_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/teams","hooks_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/hooks","issue_events_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/events","assignees_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/tags","blobs_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/languages","stargazers_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/stargazers","contributors_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/contributors","subscribers_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/subscribers","subscription_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/subscription","commits_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/merges","archive_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/downloads","issues_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/firefox-ui-tests/releases{/id}","created_at":"2014-10-09T19:09:05Z","updated_at":"2015-11-09T08:30:44Z","pushed_at":"2015-11-17T20:43:06Z","git_url":"git://github.com/mozilla/firefox-ui-tests.git","ssh_url":"git@github.com:mozilla/firefox-ui-tests.git","clone_url":"https://github.com/mozilla/firefox-ui-tests.git","svn_url":"https://github.com/mozilla/firefox-ui-tests","homepage":null,"size":1118,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":7,"forks":36,"open_issues":7,"watchers":14,"default_branch":"mozilla-central"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/287"},"html":{"href":"https://github.com/mozilla/firefox-ui-tests/pull/287"},"issue":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/287"},"comments":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/issues/287/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/287/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/pulls/287/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/firefox-ui-tests/statuses/da6f39556579f3971fbb6f5985962ae922374f4a"}}}}