Fix devstack engine test coverage

One test per method with proper mocking. Add tests localrc generation

Change-Id: Id48e00f03909594b07c9763aa1aa01769bb0366d
Merge "Fix devstack engine test coverage"