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 Salt libs
  7. from salt.client.ssh.wrapper import state
  8. # Import Salt Testing libs
  9. from tests.support.unit import TestCase
  10. # Import python libs
  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)