{"action":"closed","issue":{"url":"https://api.github.com/repos/trynthink/scout/issues/111","repository_url":"https://api.github.com/repos/trynthink/scout","labels_url":"https://api.github.com/repos/trynthink/scout/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/trynthink/scout/issues/111/comments","events_url":"https://api.github.com/repos/trynthink/scout/issues/111/events","html_url":"https://github.com/trynthink/scout/issues/111","id":128884444,"number":111,"title":"Confirm intended operation of 'dict_check'","user":{"login":"trynthink","id":6493639,"avatar_url":"https://avatars.githubusercontent.com/u/6493639?v=3","gravatar_id":"","url":"https://api.github.com/users/trynthink","html_url":"https://github.com/trynthink","followers_url":"https://api.github.com/users/trynthink/followers","following_url":"https://api.github.com/users/trynthink/following{/other_user}","gists_url":"https://api.github.com/users/trynthink/gists{/gist_id}","starred_url":"https://api.github.com/users/trynthink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trynthink/subscriptions","organizations_url":"https://api.github.com/users/trynthink/orgs","repos_url":"https://api.github.com/users/trynthink/repos","events_url":"https://api.github.com/users/trynthink/events{/privacy}","received_events_url":"https://api.github.com/users/trynthink/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/trynthink/scout/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/trynthink/scout/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-01-26T17:20:28Z","updated_at":"2016-08-10T21:05:56Z","closed_at":"2016-08-10T21:05:56Z","body":"The 'dict_check' function is designed to check for near equality<sup>[1](#footnote1)</sup> of numeric data in dicts and nested dicts produced by functions under test against pre-defined dicts with the anticipated data and dict structure. In configuration of some of the tests in 2d1bb62, it appeared that 'dict_check' would *not* yield a failing result when comparing the dict generated by the function under test with an empty dict (i.e., {}). Additionally, if the two dicts being compared had different hierarchies or structures, the 'dict_check' function might report an error result rather than a failing result. While the latter is annoying, the former behavior should be explored further and, if replicable, corrected wherever 'dict_check' appears.\r\n\r\n<sup><a name=\"footnote1\">1</a></sup> Normally, dicts can be checked using unittest.assertDictEqual, but since there might be non-integer numbers in the particular dicts being tested, floating point accuracy will cause that approach to (typically) fail, thus requiring a custom function that will check numbers to a specified decimal accuracy."}}
{"actor":{"display_login":"trynthink"}}