Port the oe-self build tests to django test framework related bug is #9151
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit /?id=085688c8ed2a95ff47ca10275726ae7cbbab0902