{"action":"created","issue":{"url":"https://api.github.com/repos/beanbaginc/kgb/issues/3","repository_url":"https://api.github.com/repos/beanbaginc/kgb","labels_url":"https://api.github.com/repos/beanbaginc/kgb/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/beanbaginc/kgb/issues/3/comments","events_url":"https://api.github.com/repos/beanbaginc/kgb/issues/3/events","html_url":"https://github.com/beanbaginc/kgb/issues/3","id":390583108,"node_id":"MDU6SXNzdWUzOTA1ODMxMDg=","number":3,"title":"using call_fake to return different responses","user":{"login":"guyisra","id":1073521,"node_id":"MDQ6VXNlcjEwNzM1MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/1073521?v=4","gravatar_id":"","url":"https://api.github.com/users/guyisra","html_url":"https://github.com/guyisra","followers_url":"https://api.github.com/users/guyisra/followers","following_url":"https://api.github.com/users/guyisra/following{/other_user}","gists_url":"https://api.github.com/users/guyisra/gists{/gist_id}","starred_url":"https://api.github.com/users/guyisra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyisra/subscriptions","organizations_url":"https://api.github.com/users/guyisra/orgs","repos_url":"https://api.github.com/users/guyisra/repos","events_url":"https://api.github.com/users/guyisra/events{/privacy}","received_events_url":"https://api.github.com/users/guyisra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-13T09:12:56Z","updated_at":"2018-12-13T09:50:49Z","closed_at":null,"author_association":"NONE","body":"I'd like my spy to be a double agent, and return different responses each time being called\r\n\r\n```\r\nself.spy_on(obj.func, call_fake=fake_multi)\r\n```\r\nwhere \r\n\r\n```\r\ndef fake_multi(*args, **kwargs):\r\n    return [True, False]\r\n```\r\nsuch that\r\n\r\n```\r\nobj.func.calls[0].return_value == True\r\nobj.func.calls[1].return_value == False\r\n```\r\nDoes kgb deploy double (and more) agents?"},"comment":{"url":"https://api.github.com/repos/beanbaginc/kgb/issues/comments/446907131","html_url":"https://github.com/beanbaginc/kgb/issues/3#issuecomment-446907131","issue_url":"https://api.github.com/repos/beanbaginc/kgb/issues/3","id":446907131,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjkwNzEzMQ==","user":{"login":"guyisra","id":1073521,"node_id":"MDQ6VXNlcjEwNzM1MjE=","avatar_url":"https://avatars1.githubusercontent.com/u/1073521?v=4","gravatar_id":"","url":"https://api.github.com/users/guyisra","html_url":"https://github.com/guyisra","followers_url":"https://api.github.com/users/guyisra/followers","following_url":"https://api.github.com/users/guyisra/following{/other_user}","gists_url":"https://api.github.com/users/guyisra/gists{/gist_id}","starred_url":"https://api.github.com/users/guyisra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyisra/subscriptions","organizations_url":"https://api.github.com/users/guyisra/orgs","repos_url":"https://api.github.com/users/guyisra/repos","events_url":"https://api.github.com/users/guyisra/events{/privacy}","received_events_url":"https://api.github.com/users/guyisra/received_events","type":"User","site_admin":false},"created_at":"2018-12-13T09:50:49Z","updated_at":"2018-12-13T09:50:49Z","author_association":"NONE","body":"Thanks for the quick reply\r\nI'm currently doing #2, but it feels funky. \r\nWill a PR for adding a multiple response flag to the spy_on be accepted?"}}
{"actor":{"display_login":"guyisra"}}