To setup and teardown proxy.py for your Python unittest classes, simply use proxy.TestCase instead of unittest.TestCase. Example: import proxy class TestProxyPyEmbedded(proxy.TestCase): def test_my_application_with_proxy(self) -> None: self.assertTrue(True) Note that: proxy.TestCase override...