Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/tests/test_profilemanager.txt @ 28:d4f0c1c4d0eb
all that fuss over a missing "s"
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 16:48:43 -0700 |
parents | 5988a15da3b4 |
children |
comparison
equal
deleted
inserted
replaced
27:5988a15da3b4 | 28:d4f0c1c4d0eb |
---|---|
7 >>> from profilemanager import ProfileManager | 7 >>> from profilemanager import ProfileManager |
8 | 8 |
9 Get the path to the test profiles.ini file: | 9 Get the path to the test profiles.ini file: |
10 | 10 |
11 >>> from pkg_resources import resource_filename | 11 >>> from pkg_resources import resource_filename |
12 >>> profiles_dir = os.path.join('test', 'profiles') | 12 >>> profiles_dir = os.path.join('tests', 'profiles') |
13 >>> path = os.path.join(profiles_dir, 'profiles.ini') | 13 >>> path = os.path.join(profiles_dir, 'profiles.ini') |
14 >>> profiles = resource_filename('profilemanager', path) | 14 >>> profiles = resource_filename('profilemanager', path) |
15 >>> print profiles | |
16 >>> profiles_dir = resource_filename('profilemanager', profiles_dir) | 15 >>> profiles_dir = resource_filename('profilemanager', profiles_dir) |
17 >>> os.path.exists(profiles) | 16 >>> os.path.exists(profiles) |
18 True | 17 True |
19 >>> os.path.exists(profiles_dir) | 18 >>> os.path.exists(profiles_dir) |
20 True | 19 True |