Add test cases to test poky/meta/lib/oe/buildhistory_analsysis.py, usually those test were placed at poky/meta/lib/oe/ but all those test cases were moved to poky/meta/lib/oeqa/selftes/oelib-tests so all the new test cases should be created there, refer to bug 7376 to check the changes.
Sent patch for this bug http://lists.openembedded.org/pipermail/openembedded-core/2017-February/133352.html
Sent v2 http://lists.openembedded.org/pipermail/openembedded-core/2017-February/133415.html
Already in master https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=df55b06cebd5d990bedc06a4c4ff59e0d7d84c54
test cases were moved to poky/meta/lib/oeqa/selftes/oelib-tests so all the new test cases should be created there.