'The API building script invokes the same code that
L{test_buildWithPolicy} tests.'

def test_apiBuilderScriptMain(self):

    script = BuildAPIDocsScript()
    calls = []
    script.buildAPIDocs = (lambda a, b: calls.append((a, b)))
    script.main(['hello', 'there'])
    self.assertEqual(calls, [(FilePath('hello'), FilePath('there'))])
