comparison tests/doctest.txt @ 20:e2c9a9a4d524

...except i fuxored my logic
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 08 Jul 2011 17:59:40 -0700
parents 996d579f0dc3
children bb19d3dac4c5
comparison
equal deleted inserted replaced
19:996d579f0dc3 20:e2c9a9a4d524
54 >>> os.path.exists('fleem') and os.path.isdir('fleem') 54 >>> os.path.exists('fleem') and os.path.isdir('fleem')
55 True 55 True
56 >>> srcdir = os.path.join('fleem', 'src') 56 >>> srcdir = os.path.join('fleem', 'src')
57 >>> packageA = os.path.join(srcdir, [i for i in os.listdir(srcdir) if i.startswith('packageA')][0]) 57 >>> packageA = os.path.join(srcdir, [i for i in os.listdir(srcdir) if i.startswith('packageA')][0])
58 >>> os.path.exists(os.path.join(packageA 'foo.txt')) 58 >>> os.path.exists(os.path.join(packageA 'foo.txt'))
59 True 59 False
60 60
61 Clean up:: 61 Clean up::
62 62
63 >>> import shutil 63 >>> import shutil
64 >>> shutil.rmtree(directory) 64 >>> shutil.rmtree(directory)