def test_import_optional_success(self):
        """
        Do the same imports as the prior tests except now expecting success as
        we run this test after installing optional packages.
        """

        for opt, mods in optional_mods.items():
            with self.subTest(optional=opt):
                # First make sure the optional package is installed.
                self.assertTrue(
                    module_installed(opt),
                    f"Module {opt} was supposed to be installed for this test.",
                )

                for mod in mods:
                    with self.subTest(mod=mod):
                        # Make sure we can import the module now.
                        importlib.import_module(mod)

        Do the same imports as the prior tests except now expecting success as
        we run this test after installing optional packages.
        
tests/unit/static/test_static.py