<s> from subprocess import check_call <EOL> import pytest <EOL> from pew . _utils import invoke_pew as invoke <EOL> @ pytest . yield_fixture ( ) <EOL> def to_be_deleted ( workon_home ) : <EOL> envname = '<STR_LIT>' <EOL> invoke ( '<STR_LIT>' , envname , '<STR_LIT>' ) <EOL> yield envname <EOL> assert not ( workon_home / envname ) . exists ( ) <EOL> def test_remove ( to_be_deleted ) : <EOL> invoke ( '<STR_LIT>' , to_be_deleted ) <EOL> def test_no_such_env ( workon_home ) : <EOL> assert not ( workon_home / '<STR_LIT>' ) . exists ( ) <EOL> check_call ( '<STR_LIT>' . split ( ) ) </s>
