def test_run_command_env(self):
     env = {'FOO': 'foo'}
     output = undercloud._run_command(['env'], env)
     self.assertIn('FOO=foo', output)
 def test_run_command(self):
     output = undercloud._run_command(['echo', 'foo'])
     self.assertEqual('foo\n', output)