man_spm_test

This commit is contained in:
Frode Gundersen 2017-12-11 19:52:32 +00:00
parent 85160fd297
commit c9fa4ed2a7
No known key found for this signature in database
GPG key ID: 49E5BDBFA6AFB570

View file

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
'''
Tests man spm
'''
# Import python libs
from __future__ import absolute_import
# Import Salt Testing libs
from tests.support.case import ModuleCase
class SPMManTest(ModuleCase):
'''
Validate man spm
'''
def test_man_spm(self):
'''
test man spm
'''
cmd = self.run_function('cmd.run', ['man spm'])
self.assertIn('Salt Package Manager', cmd)
self.assertIn('spm is the frontend command for managing Salt packages.', cmd)