Did I find the right examples for you? yes no

All Samples(8)  |  Call(0)  |  Derive(8)  |  Import(0)

src/p/y/python-ironicclient-0.1.4/ironicclient/tests/v1/test_port_shell.py   python-ironicclient(Download)
class PortShellTest(utils.BaseTestCase):
    def test_port_show(self):
        actual = {}
        fake_print_dict = lambda data, *args, **kwargs: actual.update(data)
        with mock.patch.object(common_utils, 'print_dict', fake_print_dict):

src/p/y/python-ironicclient-0.1.4/ironicclient/tests/v1/test_node_shell.py   python-ironicclient(Download)
class NodeShellTest(utils.BaseTestCase):
    def test_node_show(self):
        actual = {}
        fake_print_dict = lambda data, *args, **kwargs: actual.update(data)
        with mock.patch.object(common_utils, 'print_dict', fake_print_dict):

src/p/y/python-ironicclient-0.1.4/ironicclient/tests/v1/test_driver_shell.py   python-ironicclient(Download)
class DriverShellTest(utils.BaseTestCase):
    def test_driver_show(self):
        actual = {}
        fake_print_dict = lambda data, *args, **kwargs: actual.update(data)
        with mock.patch.object(common_utils, 'print_dict', fake_print_dict):

src/p/y/python-ironicclient-0.1.4/ironicclient/tests/v1/test_chassis_shell.py   python-ironicclient(Download)
class ChassisShellTest(utils.BaseTestCase):
    def test_chassis_show(self):
        actual = {}
        fake_print_dict = lambda data, *args, **kwargs: actual.update(data)
        with mock.patch.object(common_utils, 'print_dict', fake_print_dict):

src/p/y/python-ironicclient-0.1.4/ironicclient/tests/test_utils.py   python-ironicclient(Download)
class UtilsTest(test_utils.BaseTestCase):
 
    def test_prettytable(self):
        output_dict = six.StringIO()
        utils.print_dict({'K': 'k', 'Key': 'Value'}, outfile=output_dict)

src/p/y/python-ironicclient-0.1.4/ironicclient/tests/test_shell.py   python-ironicclient(Download)
class ShellTest(utils.BaseTestCase):
    re_options = re.DOTALL | re.MULTILINE
 
    # Patch os.environ to avoid required auth info.
    def make_env(self, exclude=None):

src/p/y/python-ironicclient-0.1.4/ironicclient/tests/test_http.py   python-ironicclient(Download)
class HttpClientTest(utils.BaseTestCase):
 
    def test_url_generation_trailing_slash_in_base(self):
        client = http.HTTPClient('http://localhost/')
        url = client._make_connection_url('/v1/resources')

src/p/y/python-ironicclient-0.1.4/ironicclient/tests/test_client.py   python-ironicclient(Download)
class ClientTest(utils.BaseTestCase):
 
    def test_get_client_no_auth_token(self):
        self.useFixture(fixtures.MonkeyPatch(
            'ironicclient.client._get_ksclient', fake_get_ksclient))