{"action":"created","issue":{"url":"https://api.github.com/repos/astronouth7303/gpotato/issues/3","labels_url":"https://api.github.com/repos/astronouth7303/gpotato/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/astronouth7303/gpotato/issues/3/comments","events_url":"https://api.github.com/repos/astronouth7303/gpotato/issues/3/events","html_url":"https://github.com/astronouth7303/gpotato/issues/3","id":73093226,"number":3,"title":"Test mocking logger fail","user":{"login":"astronouth7303","id":401438,"avatar_url":"https://avatars.githubusercontent.com/u/401438?v=3","gravatar_id":"","url":"https://api.github.com/users/astronouth7303","html_url":"https://github.com/astronouth7303","followers_url":"https://api.github.com/users/astronouth7303/followers","following_url":"https://api.github.com/users/astronouth7303/following{/other_user}","gists_url":"https://api.github.com/users/astronouth7303/gists{/gist_id}","starred_url":"https://api.github.com/users/astronouth7303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronouth7303/subscriptions","organizations_url":"https://api.github.com/users/astronouth7303/orgs","repos_url":"https://api.github.com/users/astronouth7303/repos","events_url":"https://api.github.com/users/astronouth7303/events{/privacy}","received_events_url":"https://api.github.com/users/astronouth7303/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astronouth7303/gpotato/labels/testbug","name":"testbug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-04T18:33:32Z","updated_at":"2015-05-26T21:13:17Z","closed_at":null,"body":"Some kind of problem with logging and mocking:\r\n\r\n```\r\nFAIL: test_accept_connection_exception (test_base_events.BaseEventLoopWithSelectorTests)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.4/unittest/mock.py\", line 1136, in patched\r\n    return func(*args, **keywargs)\r\n  File \"/home/astronouth7303/code/gpotato/tests/test_base_events.py\", line 695, in test_accept_connection_exception\r\n    self.assertTrue(m_log.exception.called)  # FIXME\r\nAssertionError: False is not true\r\n```"},"comment":{"url":"https://api.github.com/repos/astronouth7303/gpotato/issues/comments/105666832","html_url":"https://github.com/astronouth7303/gpotato/issues/3#issuecomment-105666832","issue_url":"https://api.github.com/repos/astronouth7303/gpotato/issues/3","id":105666832,"user":{"login":"astronouth7303","id":401438,"avatar_url":"https://avatars.githubusercontent.com/u/401438?v=3","gravatar_id":"","url":"https://api.github.com/users/astronouth7303","html_url":"https://github.com/astronouth7303","followers_url":"https://api.github.com/users/astronouth7303/followers","following_url":"https://api.github.com/users/astronouth7303/following{/other_user}","gists_url":"https://api.github.com/users/astronouth7303/gists{/gist_id}","starred_url":"https://api.github.com/users/astronouth7303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronouth7303/subscriptions","organizations_url":"https://api.github.com/users/astronouth7303/orgs","repos_url":"https://api.github.com/users/astronouth7303/repos","events_url":"https://api.github.com/users/astronouth7303/events{/privacy}","received_events_url":"https://api.github.com/users/astronouth7303/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T21:13:17Z","updated_at":"2015-05-26T21:13:17Z","body":"The solution here is to refactor the tests to leverage the logging framework instead of fighting it. That is, hook into the logging framework and see if a message of level EXCEPTION has been logged."}}