1
0

test_libcloudfuncs.py 645 B

123456789101112131415161718192021222324
  1. # -*- coding: utf-8 -*-
  2. '''
  3. tests.unit.cloud.test_libcloudfuncs
  4. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. '''
  6. # Import Python libs
  7. from __future__ import absolute_import, print_function, unicode_literals
  8. # Import Salt Testing Libs
  9. from tests.support.unit import TestCase
  10. # Import Salt Libs
  11. import salt.cloud.libcloudfuncs as libcloud
  12. class LibcloudTestCase(TestCase):
  13. def test_node_state_libcloud_020(self):
  14. state = libcloud.node_state(2)
  15. self.assertEqual('TERMINATED', state)
  16. def test_node_state_libcloud_100(self):
  17. state = libcloud.node_state('terminated')
  18. self.assertEqual('TERMINATED', state)