File: search_tests.py

package info (click to toggle)
python-softlayer 6.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,508 kB
  • sloc: python: 57,195; makefile: 133; xml: 97; sh: 59
file content (23 lines) | stat: -rw-r--r-- 599 bytes parent folder | download
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)