'Test if unknown commands are filtered correctly.'

def testExecutionWhiteList(self):

    (stdout, stderr, status, _) = client_utils_common.Execute('ls', ['.'])
    self.assertEqual(status, (-1))
    self.assertEqual(stdout, '')
    self.assertEqual(stderr, 'Execution    disallowed    by    whitelist.')
    (stdout, stderr, status, _) = client_utils_common.Execute('/bin/echo', ['1'])
    self.assertEqual(status, 0)
    self.assertEqual(stdout, '1\n')
    self.assertEqual(stderr, '')
    (stdout, stderr, status, _) = client_utils_common.Execute('/bin/echo', ['11'])
    self.assertEqual(status, (-1))
    self.assertEqual(stdout, '')
    self.assertEqual(stderr, 'Execution    disallowed    by    whitelist.')
