def test_do_driver_list_with_detail(self): client_mock = self.client_mock args = mock.MagicMock() args.type = None args.detail = True args.json = False d_shell.do_driver_list(client_mock, args) client_mock.driver.list.assert_called_once_with(driver_type=None, detail=True)
def test_do_driver_list_with_type_and_no_detail(self): client_mock = self.client_mock args = mock.MagicMock() args.type = 'classic' args.detail = False args.json = False d_shell.do_driver_list(client_mock, args) client_mock.driver.list.assert_called_once_with(driver_type='classic', detail=False)
def test_do_driver_list(self): client_mock = mock.MagicMock() args = mock.MagicMock() d_shell.do_driver_list(client_mock, args) client_mock.driver.list.assert_called_once_with()
def test_do_driver_list(self): client_mock = self.client_mock args = mock.MagicMock() d_shell.do_driver_list(client_mock, args) client_mock.driver.list.assert_called_once_with()