Description
Refactor HAWQ and PXF unit tests
lavjain notes:
ExecuteScript can be a separate function with command passed in as parameter.
Similarily, common.stop_component can be refactored into a separate function with both test_stop_default and test_activate_hawq_standby calling it.
If you want to go one step further, create a base class of TestHawqCommon(RMFTestCase) that defines the corresponding routines in common.py with TestHawqStandby(TestHawqCommon).
assertResourceCalled can be defined using functools.partial