Skip to content

Commit 5326298

Browse files
committed
add test for previous patch
verify that virtualenvwrapper_show_workon_options does not include blank lines in its output Change-Id: I630f94b8462c1f55cfad339f42c564d5fe65aae3
1 parent fe7a5d1 commit 5326298

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_ls.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,11 @@ test_lsvirtualenv_space_in_env_name () {
9292
assertTrue "Did not see expected message in \"$output\"" "cat \"$WORKON_HOME/output\" | grep -q ' env with space'"
9393
}
9494

95+
test_lsvirtualenv_blank_lines () {
96+
# There should be no blank lines in the list of virtualenvs
97+
mkvirtualenv "at-least-one-env" >/dev/null 2>&1
98+
assertFalse "Found blank line in virtualenvwrapper_show_workon_options output" "virtualenvwrapper_show_workon_options | grep -q '^$'"
99+
}
100+
95101

96102
. "$test_dir/shunit2"

0 commit comments

Comments
 (0)