comparison profilemanager/tests/test_profilemanager.txt @ 13:5f81f9d321ba

instantiate a profile manager in the tests with a stub profiles.ini file
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 07:47:21 -0700
parents a07e53273b70
children e846544b4d92
comparison
equal deleted inserted replaced
12:a07e53273b70 13:5f81f9d321ba
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 >>> path = os.path.join('tests', 'profiles', 'profiles.ini') 12 >>> path = os.path.join('tests', 'profiles', 'profiles.ini')
13 >>> profiles = resource_filename('profilemanager', path) 13 >>> profiles = resource_filename('profilemanager', path)
14
15 Instatiate a ProfileManager:
16
17 >>> manager = ProfileManager(profiles)