comparison tests/test_factory.txt @ 32:b98cc94ffcfa

split IniFactory tests to their own file
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 07 Jun 2011 18:52:46 -0700
parents 11039ffec62a
children 418289c0fe3c
comparison
equal deleted inserted replaced
31:8ffddc58dc81 32:b98cc94ffcfa
31 >>> factory.configure(config) 31 >>> factory.configure(config)
32 >>> obj = factory.load() 32 >>> obj = factory.load()
33 >>> obj('foobar') 33 >>> obj('foobar')
34 'PRE:abfoor' 34 'PRE:abfoor'
35 35
36 Let's test the .ini factory::
37
38 >>> from pyloader.factory import IniFactory
39 >>> inifile = os.path.join(here, 'test.ini')
40 >>> inifactory = IniFactory(inifile)