Mercurial > hg > pyloader
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test_ini.txt Tue Jun 07 18:52:46 2011 -0700 @@ -0,0 +1,15 @@ +Test IniFactory +=============== + +Let's test the .ini factory:: + + >>> import os + >>> from pyloader.factory import IniFactory + >>> inifile = os.path.join(here, 'test.ini') + >>> inifactory = IniFactory(inifile) + +Load it up:: + + >>> object = inifactory.load() + >>> 'objects.py.StringMunge' in repr(object.__class__) + True