コード例 #1
0
    def setUp(self):
        super(TestMemberShow, self).setUp()
        self.api_mock.member_show.return_value = self.mem_info
        lb_client = self.app.client_manager
        lb_client.load_balancer = self.api_mock

        self.cmd = member.ShowMember(self.app, None)
コード例 #2
0
    def setUp(self):
        super(TestMemberShow, self).setUp()
        self.api_mock = mock.Mock()
        self.api_mock.member_list.return_value = self.mem_info
        self.api_mock.member_show.return_value = {
            'member': self.mem_info['members'][0]
        }
        lb_client = self.app.client_manager
        lb_client.load_balancer = self.api_mock

        self.cmd = member.ShowMember(self.app, None)