def test_match():
 assert match(Command(u'ps -ef |\xa0grep foo', stderr=u'-bash: \xa0grep: command not found'))
 assert (not match(Command('ps -ef | grep foo')))
 assert (not match(Command()))

def test_match ( ) : assert match ( Command ( u'ps -ef |\xa0grep foo' , stderr = u'-bash: \xa0grep: command not found' ) ) assert ( not match ( Command ( 'ps -ef | grep foo' ) ) ) assert ( not match ( Command ( ) ) )
the character before grep is alt+space .