{"action":"created","comment":{"url":"https://api.github.com/repos/golemfactory/concent/pulls/comments/231511482","pull_request_review_id":172497530,"id":231511482,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTUxMTQ4Mg==","diff_hunk":"@@ -975,11 +979,79 @@ def _get_number_of_eth_block(self):  # pylint: disable=no-self-use\n     def _pass_rpc_synchronization(self, _rpc, _address, _tx_sign):  # pylint: disable=no-self-use\n         return None\n \n-    def claim_deposit_true_mock(self, concent_use_case, requestor_ethereum_address, provider_ethereum_address, subtask_cost):  # pylint: disable=unused-argument, no-self-use\n-        return (True, True)\n+    def claim_deposit_true_mock(self, subtask_id, concent_use_case, requestor_ethereum_address, provider_ethereum_address, subtask_cost, requestor_public_key, provider_public_key):  # pylint: disable=unused-argument, no-self-use\n+        requestor_client = Client.objects.get_or_create_full_clean(\n+            public_key=requestor_public_key,\n+        )\n+        requestor_deposit_account = DepositAccount(\n+            ethereum_address=requestor_ethereum_address,\n+            client=requestor_client,\n+        )\n+        requestor_deposit_account.full_clean()\n+        requestor_deposit_account.save()\n+\n+        claim_against_requestor = DepositClaim(\n+            subtask_id=subtask_id,\n+            payee_ethereum_address=provider_ethereum_address,\n+            amount=subtask_cost,\n+            concent_use_case=concent_use_case,\n+            payer_deposit_account=requestor_deposit_account,\n+        )\n+        claim_against_requestor.full_clean()\n+        claim_against_requestor.save()\n+\n+        if concent_use_case == ConcentUseCase.FORCED_ACCEPTANCE:\n+            return (claim_against_requestor, None)\n+\n+        provider_client = Client.objects.get_or_create_full_clean(\n+            public_key=provider_public_key,\n+        )\n+        provider_deposit_account = DepositAccount(\n+            ethereum_address=provider_ethereum_address,\n+            client=provider_client,\n+        )\n+        provider_deposit_account.full_clean()\n+        provider_deposit_account.save()\n+\n+        claim_against_provider = DepositClaim(\n+            subtask_id=subtask_id,\n+            payee_ethereum_address=ethereum_public_key_to_address(\n+                settings.CONCENT_ETHEREUM_PUBLIC_KEY\n+            ),\n+            amount=subtask_cost,\n+            concent_use_case=concent_use_case,\n+            payer_deposit_account=provider_deposit_account,\n+        )\n+        claim_against_provider.full_clean()\n+        claim_against_provider.save()\n+\n+        return (claim_against_requestor, claim_against_provider)\n+\n+    def claim_deposit_requestor_ok_provider_none_mock(self, subtask_id, concent_use_case, requestor_ethereum_address, provider_ethereum_address, subtask_cost, requestor_public_key, provider_public_key):  # pylint: disable=unused-argument, no-self-use","path":"concent_api/core/tests/utils.py","position":72,"original_position":72,"commit_id":"5364b16567d408b43f78c87a31ba302c327cbfab","original_commit_id":"d9f98cbdb7eb53d6180cba0a49fec6b47ba1e469","user":{"login":"Jakub89","id":20682491,"node_id":"MDQ6VXNlcjIwNjgyNDkx","avatar_url":"https://avatars2.githubusercontent.com/u/20682491?v=4","gravatar_id":"","url":"https://api.github.com/users/Jakub89","html_url":"https://github.com/Jakub89","followers_url":"https://api.github.com/users/Jakub89/followers","following_url":"https://api.github.com/users/Jakub89/following{/other_user}","gists_url":"https://api.github.com/users/Jakub89/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakub89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakub89/subscriptions","organizations_url":"https://api.github.com/users/Jakub89/orgs","repos_url":"https://api.github.com/users/Jakub89/repos","events_url":"https://api.github.com/users/Jakub89/events{/privacy}","received_events_url":"https://api.github.com/users/Jakub89/received_events","type":"User","site_admin":false},"body":"same here","created_at":"2018-11-07T13:55:32Z","updated_at":"2018-11-07T13:56:10Z","html_url":"https://github.com/golemfactory/concent/pull/922#discussion_r231511482","pull_request_url":"https://api.github.com/repos/golemfactory/concent/pulls/922","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/golemfactory/concent/pulls/comments/231511482"},"html":{"href":"https://github.com/golemfactory/concent/pull/922#discussion_r231511482"},"pull_request":{"href":"https://api.github.com/repos/golemfactory/concent/pulls/922"}}},"pull_request":{"url":"https://api.github.com/repos/golemfactory/concent/pulls/922","id":228071042,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MDcxMDQy","html_url":"https://github.com/golemfactory/concent/pull/922","diff_url":"https://github.com/golemfactory/concent/pull/922.diff","patch_url":"https://github.com/golemfactory/concent/pull/922.patch","issue_url":"https://api.github.com/repos/golemfactory/concent/issues/922","number":922,"state":"open","locked":false,"title":"Feature bankster `claim deposit` and `finalize payment` operation changes","user":{"login":"rwrzesien","id":10088909,"node_id":"MDQ6VXNlcjEwMDg4OTA5","avatar_url":"https://avatars0.githubusercontent.com/u/10088909?v=4","gravatar_id":"","url":"https://api.github.com/users/rwrzesien","html_url":"https://github.com/rwrzesien","followers_url":"https://api.github.com/users/rwrzesien/followers","following_url":"https://api.github.com/users/rwrzesien/following{/other_user}","gists_url":"https://api.github.com/users/rwrzesien/gists{/gist_id}","starred_url":"https://api.github.com/users/rwrzesien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwrzesien/subscriptions","organizations_url":"https://api.github.com/users/rwrzesien/orgs","repos_url":"https://api.github.com/users/rwrzesien/repos","events_url":"https://api.github.com/users/rwrzesien/events{/privacy}","received_events_url":"https://api.github.com/users/rwrzesien/received_events","type":"User","site_admin":false},"body":"Resolves https://github.com/golemfactory/concent/issues/895\r\nResolves https://github.com/golemfactory/concent/issues/896","created_at":"2018-11-02T22:09:23Z","updated_at":"2018-11-07T13:56:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2580f48ded0f7312a67d6a6eb1ace7a1f25a1a03","assignee":null,"assignees":[],"requested_reviewers":[{"login":"cameel","id":137030,"node_id":"MDQ6VXNlcjEzNzAzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/137030?v=4","gravatar_id":"","url":"https://api.github.com/users/cameel","html_url":"https://github.com/cameel","followers_url":"https://api.github.com/users/cameel/followers","following_url":"https://api.github.com/users/cameel/following{/other_user}","gists_url":"https://api.github.com/users/cameel/gists{/gist_id}","starred_url":"https://api.github.com/users/cameel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameel/subscriptions","organizations_url":"https://api.github.com/users/cameel/orgs","repos_url":"https://api.github.com/users/cameel/repos","events_url":"https://api.github.com/users/cameel/events{/privacy}","received_events_url":"https://api.github.com/users/cameel/received_events","type":"User","site_admin":false},{"login":"bartoszbetka","id":26007109,"node_id":"MDQ6VXNlcjI2MDA3MTA5","avatar_url":"https://avatars0.githubusercontent.com/u/26007109?v=4","gravatar_id":"","url":"https://api.github.com/users/bartoszbetka","html_url":"https://github.com/bartoszbetka","followers_url":"https://api.github.com/users/bartoszbetka/followers","following_url":"https://api.github.com/users/bartoszbetka/following{/other_user}","gists_url":"https://api.github.com/users/bartoszbetka/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszbetka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszbetka/subscriptions","organizations_url":"https://api.github.com/users/bartoszbetka/orgs","repos_url":"https://api.github.com/users/bartoszbetka/repos","events_url":"https://api.github.com/users/bartoszbetka/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszbetka/received_events","type":"User","site_admin":false},{"login":"kbeker","id":26469852,"node_id":"MDQ6VXNlcjI2NDY5ODUy","avatar_url":"https://avatars3.githubusercontent.com/u/26469852?v=4","gravatar_id":"","url":"https://api.github.com/users/kbeker","html_url":"https://github.com/kbeker","followers_url":"https://api.github.com/users/kbeker/followers","following_url":"https://api.github.com/users/kbeker/following{/other_user}","gists_url":"https://api.github.com/users/kbeker/gists{/gist_id}","starred_url":"https://api.github.com/users/kbeker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbeker/subscriptions","organizations_url":"https://api.github.com/users/kbeker/orgs","repos_url":"https://api.github.com/users/kbeker/repos","events_url":"https://api.github.com/users/kbeker/events{/privacy}","received_events_url":"https://api.github.com/users/kbeker/received_events","type":"User","site_admin":false},{"login":"MichalW-CP","id":36954871,"node_id":"MDQ6VXNlcjM2OTU0ODcx","avatar_url":"https://avatars3.githubusercontent.com/u/36954871?v=4","gravatar_id":"","url":"https://api.github.com/users/MichalW-CP","html_url":"https://github.com/MichalW-CP","followers_url":"https://api.github.com/users/MichalW-CP/followers","following_url":"https://api.github.com/users/MichalW-CP/following{/other_user}","gists_url":"https://api.github.com/users/MichalW-CP/gists{/gist_id}","starred_url":"https://api.github.com/users/MichalW-CP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichalW-CP/subscriptions","organizations_url":"https://api.github.com/users/MichalW-CP/orgs","repos_url":"https://api.github.com/users/MichalW-CP/repos","events_url":"https://api.github.com/users/MichalW-CP/events{/privacy}","received_events_url":"https://api.github.com/users/MichalW-CP/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/golemfactory/concent/pulls/922/commits","review_comments_url":"https://api.github.com/repos/golemfactory/concent/pulls/922/comments","review_comment_url":"https://api.github.com/repos/golemfactory/concent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/golemfactory/concent/issues/922/comments","statuses_url":"https://api.github.com/repos/golemfactory/concent/statuses/5364b16567d408b43f78c87a31ba302c327cbfab","head":{"label":"golemfactory:feature-bankster-claim-deposit-operation-changes","ref":"feature-bankster-claim-deposit-operation-changes","sha":"5364b16567d408b43f78c87a31ba302c327cbfab","user":{"login":"golemfactory","id":23193179,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMTkzMTc5","avatar_url":"https://avatars1.githubusercontent.com/u/23193179?v=4","gravatar_id":"","url":"https://api.github.com/users/golemfactory","html_url":"https://github.com/golemfactory","followers_url":"https://api.github.com/users/golemfactory/followers","following_url":"https://api.github.com/users/golemfactory/following{/other_user}","gists_url":"https://api.github.com/users/golemfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/golemfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golemfactory/subscriptions","organizations_url":"https://api.github.com/users/golemfactory/orgs","repos_url":"https://api.github.com/users/golemfactory/repos","events_url":"https://api.github.com/users/golemfactory/events{/privacy}","received_events_url":"https://api.github.com/users/golemfactory/received_events","type":"Organization","site_admin":false},"repo":{"id":108836885,"node_id":"MDEwOlJlcG9zaXRvcnkxMDg4MzY4ODU=","name":"concent","full_name":"golemfactory/concent","private":false,"owner":{"login":"golemfactory","id":23193179,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMTkzMTc5","avatar_url":"https://avatars1.githubusercontent.com/u/23193179?v=4","gravatar_id":"","url":"https://api.github.com/users/golemfactory","html_url":"https://github.com/golemfactory","followers_url":"https://api.github.com/users/golemfactory/followers","following_url":"https://api.github.com/users/golemfactory/following{/other_user}","gists_url":"https://api.github.com/users/golemfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/golemfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golemfactory/subscriptions","organizations_url":"https://api.github.com/users/golemfactory/orgs","repos_url":"https://api.github.com/users/golemfactory/repos","events_url":"https://api.github.com/users/golemfactory/events{/privacy}","received_events_url":"https://api.github.com/users/golemfactory/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/golemfactory/concent","description":"Repository for Concent Service sources","fork":false,"url":"https://api.github.com/repos/golemfactory/concent","forks_url":"https://api.github.com/repos/golemfactory/concent/forks","keys_url":"https://api.github.com/repos/golemfactory/concent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/golemfactory/concent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/golemfactory/concent/teams","hooks_url":"https://api.github.com/repos/golemfactory/concent/hooks","issue_events_url":"https://api.github.com/repos/golemfactory/concent/issues/events{/number}","events_url":"https://api.github.com/repos/golemfactory/concent/events","assignees_url":"https://api.github.com/repos/golemfactory/concent/assignees{/user}","branches_url":"https://api.github.com/repos/golemfactory/concent/branches{/branch}","tags_url":"https://api.github.com/repos/golemfactory/concent/tags","blobs_url":"https://api.github.com/repos/golemfactory/concent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/golemfactory/concent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/golemfactory/concent/git/refs{/sha}","trees_url":"https://api.github.com/repos/golemfactory/concent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/golemfactory/concent/statuses/{sha}","languages_url":"https://api.github.com/repos/golemfactory/concent/languages","stargazers_url":"https://api.github.com/repos/golemfactory/concent/stargazers","contributors_url":"https://api.github.com/repos/golemfactory/concent/contributors","subscribers_url":"https://api.github.com/repos/golemfactory/concent/subscribers","subscription_url":"https://api.github.com/repos/golemfactory/concent/subscription","commits_url":"https://api.github.com/repos/golemfactory/concent/commits{/sha}","git_commits_url":"https://api.github.com/repos/golemfactory/concent/git/commits{/sha}","comments_url":"https://api.github.com/repos/golemfactory/concent/comments{/number}","issue_comment_url":"https://api.github.com/repos/golemfactory/concent/issues/comments{/number}","contents_url":"https://api.github.com/repos/golemfactory/concent/contents/{+path}","compare_url":"https://api.github.com/repos/golemfactory/concent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/golemfactory/concent/merges","archive_url":"https://api.github.com/repos/golemfactory/concent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/golemfactory/concent/downloads","issues_url":"https://api.github.com/repos/golemfactory/concent/issues{/number}","pulls_url":"https://api.github.com/repos/golemfactory/concent/pulls{/number}","milestones_url":"https://api.github.com/repos/golemfactory/concent/milestones{/number}","notifications_url":"https://api.github.com/repos/golemfactory/concent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/golemfactory/concent/labels{/name}","releases_url":"https://api.github.com/repos/golemfactory/concent/releases{/id}","deployments_url":"https://api.github.com/repos/golemfactory/concent/deployments","created_at":"2017-10-30T10:41:44Z","updated_at":"2018-11-07T13:19:50Z","pushed_at":"2018-11-07T13:20:29Z","git_url":"git://github.com/golemfactory/concent.git","ssh_url":"git@github.com:golemfactory/concent.git","clone_url":"https://github.com/golemfactory/concent.git","svn_url":"https://github.com/golemfactory/concent","homepage":null,"size":4205,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":99,"license":null,"forks":2,"open_issues":99,"watchers":4,"default_branch":"master"}},"base":{"label":"golemfactory:master","ref":"master","sha":"c9d9cdf670f7ccd56fbdfd1a0b0aaf80bd1c505d","user":{"login":"golemfactory","id":23193179,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMTkzMTc5","avatar_url":"https://avatars1.githubusercontent.com/u/23193179?v=4","gravatar_id":"","url":"https://api.github.com/users/golemfactory","html_url":"https://github.com/golemfactory","followers_url":"https://api.github.com/users/golemfactory/followers","following_url":"https://api.github.com/users/golemfactory/following{/other_user}","gists_url":"https://api.github.com/users/golemfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/golemfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golemfactory/subscriptions","organizations_url":"https://api.github.com/users/golemfactory/orgs","repos_url":"https://api.github.com/users/golemfactory/repos","events_url":"https://api.github.com/users/golemfactory/events{/privacy}","received_events_url":"https://api.github.com/users/golemfactory/received_events","type":"Organization","site_admin":false},"repo":{"id":108836885,"node_id":"MDEwOlJlcG9zaXRvcnkxMDg4MzY4ODU=","name":"concent","full_name":"golemfactory/concent","private":false,"owner":{"login":"golemfactory","id":23193179,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMTkzMTc5","avatar_url":"https://avatars1.githubusercontent.com/u/23193179?v=4","gravatar_id":"","url":"https://api.github.com/users/golemfactory","html_url":"https://github.com/golemfactory","followers_url":"https://api.github.com/users/golemfactory/followers","following_url":"https://api.github.com/users/golemfactory/following{/other_user}","gists_url":"https://api.github.com/users/golemfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/golemfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golemfactory/subscriptions","organizations_url":"https://api.github.com/users/golemfactory/orgs","repos_url":"https://api.github.com/users/golemfactory/repos","events_url":"https://api.github.com/users/golemfactory/events{/privacy}","received_events_url":"https://api.github.com/users/golemfactory/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/golemfactory/concent","description":"Repository for Concent Service sources","fork":false,"url":"https://api.github.com/repos/golemfactory/concent","forks_url":"https://api.github.com/repos/golemfactory/concent/forks","keys_url":"https://api.github.com/repos/golemfactory/concent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/golemfactory/concent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/golemfactory/concent/teams","hooks_url":"https://api.github.com/repos/golemfactory/concent/hooks","issue_events_url":"https://api.github.com/repos/golemfactory/concent/issues/events{/number}","events_url":"https://api.github.com/repos/golemfactory/concent/events","assignees_url":"https://api.github.com/repos/golemfactory/concent/assignees{/user}","branches_url":"https://api.github.com/repos/golemfactory/concent/branches{/branch}","tags_url":"https://api.github.com/repos/golemfactory/concent/tags","blobs_url":"https://api.github.com/repos/golemfactory/concent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/golemfactory/concent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/golemfactory/concent/git/refs{/sha}","trees_url":"https://api.github.com/repos/golemfactory/concent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/golemfactory/concent/statuses/{sha}","languages_url":"https://api.github.com/repos/golemfactory/concent/languages","stargazers_url":"https://api.github.com/repos/golemfactory/concent/stargazers","contributors_url":"https://api.github.com/repos/golemfactory/concent/contributors","subscribers_url":"https://api.github.com/repos/golemfactory/concent/subscribers","subscription_url":"https://api.github.com/repos/golemfactory/concent/subscription","commits_url":"https://api.github.com/repos/golemfactory/concent/commits{/sha}","git_commits_url":"https://api.github.com/repos/golemfactory/concent/git/commits{/sha}","comments_url":"https://api.github.com/repos/golemfactory/concent/comments{/number}","issue_comment_url":"https://api.github.com/repos/golemfactory/concent/issues/comments{/number}","contents_url":"https://api.github.com/repos/golemfactory/concent/contents/{+path}","compare_url":"https://api.github.com/repos/golemfactory/concent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/golemfactory/concent/merges","archive_url":"https://api.github.com/repos/golemfactory/concent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/golemfactory/concent/downloads","issues_url":"https://api.github.com/repos/golemfactory/concent/issues{/number}","pulls_url":"https://api.github.com/repos/golemfactory/concent/pulls{/number}","milestones_url":"https://api.github.com/repos/golemfactory/concent/milestones{/number}","notifications_url":"https://api.github.com/repos/golemfactory/concent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/golemfactory/concent/labels{/name}","releases_url":"https://api.github.com/repos/golemfactory/concent/releases{/id}","deployments_url":"https://api.github.com/repos/golemfactory/concent/deployments","created_at":"2017-10-30T10:41:44Z","updated_at":"2018-11-07T13:19:50Z","pushed_at":"2018-11-07T13:20:29Z","git_url":"git://github.com/golemfactory/concent.git","ssh_url":"git@github.com:golemfactory/concent.git","clone_url":"https://github.com/golemfactory/concent.git","svn_url":"https://github.com/golemfactory/concent","homepage":null,"size":4205,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":99,"license":null,"forks":2,"open_issues":99,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/golemfactory/concent/pulls/922"},"html":{"href":"https://github.com/golemfactory/concent/pull/922"},"issue":{"href":"https://api.github.com/repos/golemfactory/concent/issues/922"},"comments":{"href":"https://api.github.com/repos/golemfactory/concent/issues/922/comments"},"review_comments":{"href":"https://api.github.com/repos/golemfactory/concent/pulls/922/comments"},"review_comment":{"href":"https://api.github.com/repos/golemfactory/concent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/golemfactory/concent/pulls/922/commits"},"statuses":{"href":"https://api.github.com/repos/golemfactory/concent/statuses/5364b16567d408b43f78c87a31ba302c327cbfab"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Jakub89"}}