import unittest
import os
from test.util import ykman_cli


@unittest.skipIf(
    os.environ.get('DESTRUCTIVE_TEST_YUBIKEY_SERIAL') is None,
    'DESTRUCTIVE_TEST_YUBIKEY_SERIAL == None')
class TestExternalLibraries(unittest.TestCase):

    def test_ykman_version(self):
        output = ykman_cli('-v')
        # Test that major version is 1 on all libs
        self.assertIn('libykpers 1', output)
        self.assertIn('libusb 1', output)

    def test_ykman_version_not_found(self):
        output = ykman_cli('-v')
        self.assertNotIn('not found!', output)
        self.assertNotIn('<pyusb backend missing>', output)

@@ -13,18 +13,8 @@
 est%0A
-import os%0A
 from
@@ -47,136 +47,8 @@
 i%0A%0A%0A
-@unittest.skipIf(%0A    os.environ.get('DESTRUCTIVE_TEST_YUBIKEY_SERIAL') is None,%0A    'DESTRUCTIVE_TEST_YUBIKEY_SERIAL == None')%0A
 clas

Remove unnecessary @skipIf from test_external_libs