def test_with_addl_env(self):
    expected = ('%s\n' % self.test_file)
    self.mock_popen.return_value = [expected, '']
    result = utils.execute(['ls', self.test_file], addl_env={'foo': 'bar'})
    self.assertEqual(result, expected)
def test_with_addl_env(self):
    expected = ('%s\n' % self.test_file)
    self.mock_popen.return_value = [expected, ]
    result = utils.execute(['ls', self.test_file], addl_env={'foo': 'bar'})
    self.assertEqual(result, expected)