def METHOD_NAME(self):
    """Unit test for run_external"""
    args = {'nt': ['cmd.exe', '/c', 'dir', '%windir%\system32', '/s', '/b'],
            'posix': ['find', '/usr/bin']}
    (rc, stdout, stderr) = run_external(args[os.name])
    self.assertEqual(0, rc)
    self.assertEqual(0, len(stderr))
    self.assertRaises(OSError, run_external, ['cmddoesnotexist'])
    args = {'nt': ['cmd.exe', '/c', 'dir', 'c:\doesnotexist'],
            'posix': ['ls', '/doesnotexist']}
    (rc, stdout, stderr) = run_external(args[os.name])
    self.assertNotEqual(0, rc)