@mock.patch('certbot._internal.client.display_ops.choose_account')
def test_multiple_accounts(self, mock_choose_accounts):
    for acc in self.accs:
        self.account_storage.save(acc, self.mock_client)
    mock_choose_accounts.return_value = self.accs[1]
    self.assertEqual((self.accs[1], None), self._call())
    self.assertEqual(set(mock_choose_accounts.call_args[0][0]), set(self.accs))
    self.assertEqual(self.accs[1].id, self.config.account)
    self.assertTrue((self.config.email is None))
@mock.patch('certbot._internal.client.display_ops.choose_account')
def test_multiple_accounts(self, mock_choose_accounts):
    for acc in self.accs:
        self.account_storage.save(acc, self.mock_client)
    mock_choose_accounts.return_value = self.accs[1]
    self.assertEqual((self.accs[1], None), self._call())
    self.assertEqual(set(mock_choose_accounts.call_args[0][0]), set(self.accs))
    self.assertEqual(self.accs[1].id, self.config.account)
    self.assertTrue((self.config.email is None))