<commit_before>import unittest
from ykman.util import TRANSPORT
from .util import (DestructiveYubikeyTestCase, missing_mode, ykman_cli)


@unittest.skipIf(*missing_mode(TRANSPORT.CCID))
class TestOpenPGP(DestructiveYubikeyTestCase):

    def setUp(self):
        ykman_cli('openpgp', 'reset', '-f')

    def test_openpgp_info(self):
        output = ykman_cli('openpgp', 'info')
        self.assertIn('OpenPGP version:', output)

    def test_openpgp_reset(self):
        output = ykman_cli('openpgp', 'reset', '-f')
        self.assertIn(
            'Success! All data has been cleared and default PINs are set.',
            output)<commit_msg>Upgrade test_cli_openpgp<commit_after>import unittest
from .util import cli_test_suite


@cli_test_suite
def additional_tests(ykman_cli):
    class TestOpenPGP(unittest.TestCase):

        def setUp(self):
            ykman_cli('openpgp', 'reset', '-f')

        def test_openpgp_info(self):
            output = ykman_cli('openpgp', 'info')
            self.assertIn('OpenPGP version:', output)

        def test_openpgp_reset(self):
            output = ykman_cli('openpgp', 'reset', '-f')
            self.assertIn(
                'Success! All data has been cleared and default PINs are set.',
                output)

    return [TestOpenPGP]
{'fraction_non_alphanumeric': 0.11119691119691119, 'fraction_numerical': 0.0, 'mean_word_length': 3.0123839009287927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3934971', 'n_tokens_mistral': 433, 'n_tokens_neox': 415, 'n_words': 92}