AMBARI-1213. Cleanup python test cases and introduce third party library for mock testing python code. (mahadev)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1435460 13f79535-47bb-0310-9956-ffa450edef68