salt/tests/integration/shell/test_master_tops.py

25 lines
513 B
Python
Raw Normal View History

2014-06-25 16:10:12 +00:00
# -*- coding: utf-8 -*-
'''
tests.integration.shell.master_tops
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'''
# Import Python libs
from __future__ import absolute_import
2014-06-25 16:10:12 +00:00
# Import Salt Testing libs
from tests.support.case import ShellCase
2014-06-25 16:10:12 +00:00
class MasterTopsTest(ShellCase):
2014-06-25 16:10:12 +00:00
_call_binary_ = 'salt'
def test_custom_tops_gets_utilized(self):
resp = self.run_call(
'state.show_top'
)
self.assertTrue(
any('master_tops_test' in _x for _x in resp)
)