adding unit tests for base.py

implements blueprint reddwarfclient-unit-tests

Change-Id: Ibe97fe2ada960412b3b2024adde5ea885c909047