Commits

Doug Hellmann committed 3f1db38

add test for --no-site-packages flag after cpvirtualenv; addresses #102

  • Participants
  • Parent commits 4d4ab93

Comments (0)

Files changed (1)

File tests/test_cp.sh

     rm -f "$WORKON_HOME/postmkvirtualenv"
 }
 
+test_no_site_packages () {
+    # See issue #102
+    mkvirtualenv "source" --no-site-packages
+    cpvirtualenv "source" "destination"
+    ngsp_file="`virtualenvwrapper_get_site_packages_dir`/../no-global-site-packages.txt"
+    assertTrue "$ngsp_file does not exist in copied env" "[ -f \"$ngsp_file\" ]"
+}
+
 . "$test_dir/shunit2"