def test_top_base_saltenv(): ''' Test if top function is returning the static SUSE Manager top state for base environment when environment is set to "base". ''' kwargs = {'opts': {'environment': 'base'}} assert mgr_master_tops.top(**kwargs) == TEST_MANAGER_STATIC_TOP
def test_top_default_saltenv(): ''' Test if top function is returning the static SUSE Manager top state for base environment when no environment has been specified. ''' kwargs = {'opts': {'environment': None}} assert mgr_master_tops.top(**kwargs) == TEST_MANAGER_STATIC_TOP
def test_top_unknown_saltenv(): ''' Test if top function is returning None for unknown salt environments. ''' kwargs = {'opts': {'environment': 'otherenv'}} assert mgr_master_tops.top(**kwargs) == None