def test_return_code_log_debug(self):
    self.mock_popen.return_value = ('', '')
    with mock.patch.object(utils, 'LOG') as log:
        utils.execute(['ls'])
        self.assertTrue(log.debug.called)
def test_return_code_log_debug(self):
    self.mock_popen.return_value = (, )
    with mock.patch.object(utils, 'LOG') as log:
        utils.execute(['ls'])
        self.assertTrue(log.debug.called)