Simplify command test asserts
Simplify command test asserts

We had some very specific assert functions for command testing make a
generic method to handle both cases and simplify the exisitng asserts.

This makes future testing of commands easier to assert state of.

Change-Id: I8fd4397e9b444d05a7ece4c81e5b6f0bca8cfdc6

citrix-openstack/nodepool,seandst/nodepool,citrix-openstack/nodepool,seandst/nodepool,Tesora/tesora-nodepool,Tesora/tesora-nodepool