diff tests/doctest.txt @ 27:dace84448c25

carry carton along with carton
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 10 Jul 2011 18:48:30 -0700
parents e2db2913123d
children
line wrap: on
line diff
--- a/tests/doctest.txt	Sun Jul 10 18:37:42 2011 -0700
+++ b/tests/doctest.txt	Sun Jul 10 18:48:30 2011 -0700
@@ -44,6 +44,17 @@
     >>> os.path.exists(os.path.join(bin, 'virtualenv')) or os.path.exists(os.path.join(bin, 'virtualenv.exe'))
     True
 
+Ensure you're bringing along carton::
+
+    >>> packaged_carton = os.path.join(bin, 'carton.py')
+    >>> os.path.exists(packaged_carton)
+    True
+    >>> carton_module = carton.__file__.rstrip('c')
+    >>> os.path.exists(carton_module)
+    True
+    >>> file(packaged_carton).read() == file(carton_module).read()
+    True
+    
 Show that non-package files get carried along too::
 
     >>> os.path.exists(os.path.join('foo', 'src', 'packageA', 'foo.txt'))