mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
d612bd27e4
This moves mislocated tests to their proper locations to match the files they test, merging tests into existing modules where necessary.
25 lines
645 B
Python
25 lines
645 B
Python
# -*- coding: utf-8 -*-
|
|
'''
|
|
tests.unit.cloud.test_libcloudfuncs
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
'''
|
|
|
|
# Import Python libs
|
|
from __future__ import absolute_import, print_function, unicode_literals
|
|
|
|
# Import Salt Testing Libs
|
|
from tests.support.unit import TestCase
|
|
|
|
# Import Salt Libs
|
|
import salt.cloud.libcloudfuncs as libcloud
|
|
|
|
|
|
class LibcloudTestCase(TestCase):
|
|
def test_node_state_libcloud_020(self):
|
|
state = libcloud.node_state(2)
|
|
self.assertEqual('TERMINATED', state)
|
|
|
|
def test_node_state_libcloud_100(self):
|
|
state = libcloud.node_state('terminated')
|
|
self.assertEqual('TERMINATED', state)
|