1
0

test_state.py 560 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. '''
  3. :codeauthor: :email:`saltybob <bbaker@saltstack.com`
  4. '''
  5. from __future__ import absolute_import
  6. # Import python libs
  7. # Import Salt Testing libs
  8. from tests.support.unit import TestCase
  9. # Import Salt libs
  10. from salt.client.ssh.wrapper import state
  11. class StateTests(TestCase):
  12. def test_parse_mods(self):
  13. '''
  14. Test _parse_mods
  15. '''
  16. expected = ['a', 'b', 'c', 'd', 'e', 'f']
  17. mods = 'a,b, c, d,e ,f '
  18. actual = state._parse_mods(mods)
  19. self.assertEqual(expected, actual)