trivial: Use literals inline
trivial: Use literals inline

Another step towards the demise of Mox. This makes the move from
mox-style calls to mock ones much easier to grok. We also some 'if'
blocks that were not being used.

Change-Id: I73a741a9b7d80eb0475a07cca13138659a9a31b0
Signed-off-by: Stephen Finucane <4725dc7f3632bf126d9fbdc30c347e91e8d2fe16@redhat.com>

openstack/horizon,openstack/horizon,ChameleonCloud/horizon,ChameleonCloud/horizon,ChameleonCloud/horizon,openstack/horizon,openstack/horizon,ChameleonCloud/horizon