def test_toplevel_script_smoketest(self):
    script = os.path.join(os.path.dirname(__file__), '../osx-trace')
    assert os.path.exists(script)
    p = subprocess.Popen([script, 'help'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    (stdout, stderr) = p.communicate()
    self.assertTrue(stdout.startswith('Usage: osx-trace <command> [options]'))
def test_toplevel_script_smoketest(self):
    script = os.path.join(os.path.dirname(__file__), '../osx-trace')
    assert os.path.exists(script)
    p = subprocess.Popen([script, 'help'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    (stdout, stderr) = p.communicate()
    self.assertTrue(stdout.startswith('Usage: osx-trace <command> [options]'))