'Unicode output from command'

@patch('subprocess.Popen')
def test_unicode_output(self, mock_subprocess):

    mock_process = Mock(**{'communicate.return_value': (SAMPLE_UTF8_BYTES, '')})
    mock_subprocess.return_value = mock_process
    cmd = BuildCommand(['echo', 'test'], cwd='/tmp/foobar')
    cmd.run()
    self.assertEqual(cmd.output, u'H\xe9r\xc9    \xee\xdf    s\xf6m\xea    \xfcn\xef\xe7\xf3\u2202\xe9')
