{"action":"opened","issue":{"url":"https://api.github.com/repos/scality/scality-manila-utils/issues/8","labels_url":"https://api.github.com/repos/scality/scality-manila-utils/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/scality/scality-manila-utils/issues/8/comments","events_url":"https://api.github.com/repos/scality/scality-manila-utils/issues/8/events","html_url":"https://github.com/scality/scality-manila-utils/issues/8","id":102978119,"number":8,"title":"Use autospec=True on mocks where possible","user":{"login":"sbjorn","id":3911596,"avatar_url":"https://avatars.githubusercontent.com/u/3911596?v=3","gravatar_id":"","url":"https://api.github.com/users/sbjorn","html_url":"https://github.com/sbjorn","followers_url":"https://api.github.com/users/sbjorn/followers","following_url":"https://api.github.com/users/sbjorn/following{/other_user}","gists_url":"https://api.github.com/users/sbjorn/gists{/gist_id}","starred_url":"https://api.github.com/users/sbjorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbjorn/subscriptions","organizations_url":"https://api.github.com/users/sbjorn/orgs","repos_url":"https://api.github.com/users/sbjorn/repos","events_url":"https://api.github.com/users/sbjorn/events{/privacy}","received_events_url":"https://api.github.com/users/sbjorn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-25T08:46:07Z","updated_at":"2015-08-25T08:46:07Z","closed_at":null,"body":"By default, a mock does not raise an exception if an undefined method is called on it. Setting `autospec` to `True` will have it raise an exception in such situations. This will protect against bad assertions such as\r\n`mock.has_calls(...)`, where we actually want `mock.assert_has_calls(...)`."}}