def test_apiBuilderScriptMain(self):
        """
        The API building script invokes the same code that
        L{test_buildWithPolicy} tests.
        """
        script = BuildAPIDocsScript()
        calls = []
        script.buildAPIDocs = lambda a, b: calls.append((a, b))
        script.main(["hello", "there"])
        self.assertEqual(calls, [(FilePath("hello"), FilePath("there"))])

        The API building script invokes the same code that
        L{test_buildWithPolicy} tests.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_release.py