def run_expecting_error(*args):
 process = Popen((['flocker-volume'] + list(args)), stderr=PIPE)
 result = process.stderr.read()
 exit_code = process.wait()
 if (exit_code == 0):
  raise AssertionError('flocker-volume exited with code 0.')
 return result

def run_expecting_error ( * args ) : process = Popen ( ( [ 'flocker-volume' ] + list ( args ) ) , stderr = PIPE ) result = process . stderr . read ( ) exit_code = process . wait ( ) if ( exit_code == 0 ) : raise AssertionError ( 'flocker-volume exited with code 0.' ) return result
run flocker-volume with the given arguments .