Mercurial > mozilla > hg > ProfileManager
annotate profilemanager/tests/test_profilemanager.txt @ 12:a07e53273b70
adding stubs for tests
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 07:40:17 -0700 |
parents | |
children | 5f81f9d321ba |
rev | line source |
---|---|
12 | 1 Test ProfileManager |
2 =================== | |
3 | |
4 The obligatory imports: | |
5 | |
6 >>> import os | |
7 >>> from profilemanager import ProfileManager | |
8 | |
9 Get the path to the test profiles.ini file: | |
10 | |
11 >>> from pkg_resources import resource_filename | |
12 >>> path = os.path.join('tests', 'profiles', 'profiles.ini') | |
13 >>> profiles = resource_filename('profilemanager', path) |