{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/comments/22737834","id":22737834,"diff_hunk":"@@ -0,0 +1,71 @@\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+\n+from marionette import Wait\n+\n+from marketplacetests.payment.regions.in_app import InAppPayment\n+from marketplacetests.payment.app import Payment\n+from marketplacetests.marketplace_gaia_test import MarketplaceGaiaTestCase\n+from gaiatest.apps.homescreen.app import Homescreen\n+from marketplacetests.marketplace.app import Marketplace\n+from gaiatest.apps.homescreen.regions.confirm_install import ConfirmInstall\n+\n+\n+class TestMakeInAppPayment(MarketplaceGaiaTestCase):\n+\n+    APP_NAME = 'Testing In-App-Payments'\n+    APP_TITLE = 'In-App-Payments'\n+\n+    def setUp(self):\n+\n+        MarketplaceGaiaTestCase.setUp(self)\n+        self.connect_to_local_area_network()\n+\n+        self.homescreen = Homescreen(self.marionette)\n+\n+        if not self.apps.is_app_installed(self.APP_NAME):\n+\n+            marketplace = Marketplace(self.marionette, self.MARKETPLACE_DEV_NAME)\n+            marketplace.launch()\n+\n+            results = marketplace.search(self.APP_NAME)\n+            results.install_searched_app(self.APP_NAME)\n+\n+            # Confirm the installation and wait for the app icon to be present\n+            confirm_install = ConfirmInstall(self.marionette)\n+            confirm_install.tap_confirm()\n+\n+            self.device.touch_home_button()\n+\n+        self.apps.switch_to_displayed_app()\n+        self.homescreen.wait_for_app_icon_present(self.APP_NAME)\n+\n+    def test_make_an_in_app_payment(self):\n+\n+        email = self.testvars['marketplace']['username']","path":"marketplacetests/tests/test_marketplace_make_an_in-app_payment.py","position":46,"original_position":46,"commit_id":"85d86c97a00790d5be1907115b69a10134cfea19","original_commit_id":"85d86c97a00790d5be1907115b69a10134cfea19","user":{"login":"bobsilverberg","id":142755,"avatar_url":"https://avatars.githubusercontent.com/u/142755?v=3","gravatar_id":"","url":"https://api.github.com/users/bobsilverberg","html_url":"https://github.com/bobsilverberg","followers_url":"https://api.github.com/users/bobsilverberg/followers","following_url":"https://api.github.com/users/bobsilverberg/following{/other_user}","gists_url":"https://api.github.com/users/bobsilverberg/gists{/gist_id}","starred_url":"https://api.github.com/users/bobsilverberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobsilverberg/subscriptions","organizations_url":"https://api.github.com/users/bobsilverberg/orgs","repos_url":"https://api.github.com/users/bobsilverberg/repos","events_url":"https://api.github.com/users/bobsilverberg/events{/privacy}","received_events_url":"https://api.github.com/users/bobsilverberg/received_events","type":"User","site_admin":false},"body":"As above, suggest using a new user.","created_at":"2015-01-09T19:39:55Z","updated_at":"2015-01-09T19:39:55Z","html_url":"https://github.com/mozilla/marketplace-tests-gaia/pull/70#discussion_r22737834","pull_request_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/comments/22737834"},"html":{"href":"https://github.com/mozilla/marketplace-tests-gaia/pull/70#discussion_r22737834"},"pull_request":{"href":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/70","id":27044950,"html_url":"https://github.com/mozilla/marketplace-tests-gaia/pull/70","diff_url":"https://github.com/mozilla/marketplace-tests-gaia/pull/70.diff","patch_url":"https://github.com/mozilla/marketplace-tests-gaia/pull/70.patch","issue_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/issues/70","number":70,"state":"open","locked":false,"title":"Coverage for in-app Payments","user":{"login":"AndreiH","id":2787766,"avatar_url":"https://avatars.githubusercontent.com/u/2787766?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreiH","html_url":"https://github.com/AndreiH","followers_url":"https://api.github.com/users/AndreiH/followers","following_url":"https://api.github.com/users/AndreiH/following{/other_user}","gists_url":"https://api.github.com/users/AndreiH/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreiH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreiH/subscriptions","organizations_url":"https://api.github.com/users/AndreiH/orgs","repos_url":"https://api.github.com/users/AndreiH/repos","events_url":"https://api.github.com/users/AndreiH/events{/privacy}","received_events_url":"https://api.github.com/users/AndreiH/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-08T17:32:18Z","updated_at":"2015-01-09T19:39:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0b42ef9ea6137fded90fd0e3bb4ed420bea7fa4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/70/commits","review_comments_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/70/comments","review_comment_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/issues/70/comments","statuses_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/statuses/85d86c97a00790d5be1907115b69a10134cfea19","head":{"label":"AndreiH:login_in_app","ref":"login_in_app","sha":"85d86c97a00790d5be1907115b69a10134cfea19","user":{"login":"AndreiH","id":2787766,"avatar_url":"https://avatars.githubusercontent.com/u/2787766?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreiH","html_url":"https://github.com/AndreiH","followers_url":"https://api.github.com/users/AndreiH/followers","following_url":"https://api.github.com/users/AndreiH/following{/other_user}","gists_url":"https://api.github.com/users/AndreiH/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreiH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreiH/subscriptions","organizations_url":"https://api.github.com/users/AndreiH/orgs","repos_url":"https://api.github.com/users/AndreiH/repos","events_url":"https://api.github.com/users/AndreiH/events{/privacy}","received_events_url":"https://api.github.com/users/AndreiH/received_events","type":"User","site_admin":false},"repo":{"id":13560180,"name":"marketplace-tests-gaia","full_name":"AndreiH/marketplace-tests-gaia","owner":{"login":"AndreiH","id":2787766,"avatar_url":"https://avatars.githubusercontent.com/u/2787766?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreiH","html_url":"https://github.com/AndreiH","followers_url":"https://api.github.com/users/AndreiH/followers","following_url":"https://api.github.com/users/AndreiH/following{/other_user}","gists_url":"https://api.github.com/users/AndreiH/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreiH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreiH/subscriptions","organizations_url":"https://api.github.com/users/AndreiH/orgs","repos_url":"https://api.github.com/users/AndreiH/repos","events_url":"https://api.github.com/users/AndreiH/events{/privacy}","received_events_url":"https://api.github.com/users/AndreiH/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AndreiH/marketplace-tests-gaia","description":"Marketplace UI tests for Firefox OS","fork":true,"url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia","forks_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/forks","keys_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/teams","hooks_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/hooks","issue_events_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/issues/events{/number}","events_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/events","assignees_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/assignees{/user}","branches_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/branches{/branch}","tags_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/tags","blobs_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/languages","stargazers_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/stargazers","contributors_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/contributors","subscribers_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/subscribers","subscription_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/subscription","commits_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/contents/{+path}","compare_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/merges","archive_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/downloads","issues_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/issues{/number}","pulls_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/labels{/name}","releases_url":"https://api.github.com/repos/AndreiH/marketplace-tests-gaia/releases{/id}","created_at":"2013-10-14T12:09:32Z","updated_at":"2014-01-16T13:25:57Z","pushed_at":"2015-01-09T16:03:41Z","git_url":"git://github.com/AndreiH/marketplace-tests-gaia.git","ssh_url":"git@github.com:AndreiH/marketplace-tests-gaia.git","clone_url":"https://github.com/AndreiH/marketplace-tests-gaia.git","svn_url":"https://github.com/AndreiH/marketplace-tests-gaia","homepage":null,"size":587,"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":"mozilla:master","ref":"master","sha":"c5d88cdb23171c14ce3bf77397b5d0ef74256b2f","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":14169815,"name":"marketplace-tests-gaia","full_name":"mozilla/marketplace-tests-gaia","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/marketplace-tests-gaia","description":"Marketplace UI tests for Firefox OS","fork":false,"url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia","forks_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/forks","keys_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/teams","hooks_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/events","assignees_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/tags","blobs_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/subscription","commits_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/merges","archive_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/downloads","issues_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/releases{/id}","created_at":"2013-11-06T10:41:14Z","updated_at":"2015-01-09T16:08:39Z","pushed_at":"2015-01-09T16:08:39Z","git_url":"git://github.com/mozilla/marketplace-tests-gaia.git","ssh_url":"git@github.com:mozilla/marketplace-tests-gaia.git","clone_url":"https://github.com/mozilla/marketplace-tests-gaia.git","svn_url":"https://github.com/mozilla/marketplace-tests-gaia","homepage":null,"size":807,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":9,"forks":8,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/70"},"html":{"href":"https://github.com/mozilla/marketplace-tests-gaia/pull/70"},"issue":{"href":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/issues/70"},"comments":{"href":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/marketplace-tests-gaia/statuses/85d86c97a00790d5be1907115b69a10134cfea19"}}}}