Mercurial > hg > pyloader
comparison tests/test_factory.txt @ 17:11039ffec62a
more stubbing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 27 May 2011 19:06:22 -0700 |
parents | 0bea5297c156 |
children | b98cc94ffcfa |
comparison
equal
deleted
inserted
replaced
16:edecb6fbd5a7 | 17:11039ffec62a |
---|---|
30 ... 'callback': {'path': objects + ':stringsort'} } | 30 ... 'callback': {'path': objects + ':stringsort'} } |
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 | |
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) |