comparison tests/test_ini.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
children 48f61cea0a3c
comparison
equal deleted inserted replaced
31:8ffddc58dc81 32:b98cc94ffcfa
1 Test IniFactory
2 ===============
3
4 Let's test the .ini factory::
5
6 >>> import os
7 >>> from pyloader.factory import IniFactory
8 >>> inifile = os.path.join(here, 'test.ini')
9 >>> inifactory = IniFactory(inifile)
10
11 Load it up::
12
13 >>> object = inifactory.load()
14 >>> 'objects.py.StringMunge' in repr(object.__class__)
15 True