1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
"""
SoftLayer.tests.CLI.modules.find_tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:license: MIT, see LICENSE for more details.
"""
from SoftLayer import testing
class FindTests(testing.TestCase):
def test_find(self):
result = self.run_command(['search', '--types'])
self.assert_no_fail(result)
def test_find_advanced(self):
result = self.run_command(['search', 'hardware', '--advanced'])
self.assert_no_fail(result)
def test_no_options(self):
result = self.run_command(['search'])
self.assertEqual(result.exit_code, 2)
|