comparison 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
comparison
equal deleted inserted replaced
26:e6ee0410ceef 27:dace84448c25
42 Ensure you're bringing along virtualenv:: 42 Ensure you're bringing along virtualenv::
43 43
44 >>> os.path.exists(os.path.join(bin, 'virtualenv')) or os.path.exists(os.path.join(bin, 'virtualenv.exe')) 44 >>> os.path.exists(os.path.join(bin, 'virtualenv')) or os.path.exists(os.path.join(bin, 'virtualenv.exe'))
45 True 45 True
46 46
47 Ensure you're bringing along carton::
48
49 >>> packaged_carton = os.path.join(bin, 'carton.py')
50 >>> os.path.exists(packaged_carton)
51 True
52 >>> carton_module = carton.__file__.rstrip('c')
53 >>> os.path.exists(carton_module)
54 True
55 >>> file(packaged_carton).read() == file(carton_module).read()
56 True
57
47 Show that non-package files get carried along too:: 58 Show that non-package files get carried along too::
48 59
49 >>> os.path.exists(os.path.join('foo', 'src', 'packageA', 'foo.txt')) 60 >>> os.path.exists(os.path.join('foo', 'src', 'packageA', 'foo.txt'))
50 True 61 True
51 62