def test_get_new_command():
 assert (get_new_command(Command(u'ps -ef |\xa0grep foo')) == 'ps -ef | grep foo')

def test_get_new_command ( ) : assert ( get_new_command ( Command ( u'ps -ef |\xa0grep foo' ) ) == 'ps -ef | grep foo' )
replace the alt+space character by a simple space .