# HG changeset patch # User Jeff Hammel # Date 1307497966 25200 # Node ID b98cc94ffcfaa54766b736451c3abe93251f7975 # Parent 8ffddc58dc81f351d2ba89cb6560f71907266c05 split IniFactory tests to their own file diff -r 8ffddc58dc81 -r b98cc94ffcfa tests/test_factory.txt --- a/tests/test_factory.txt Tue Jun 07 07:31:05 2011 -0700 +++ b/tests/test_factory.txt Tue Jun 07 18:52:46 2011 -0700 @@ -33,8 +33,3 @@ >>> obj('foobar') 'PRE:abfoor' -Let's test the .ini factory:: - - >>> from pyloader.factory import IniFactory - >>> inifile = os.path.join(here, 'test.ini') - >>> inifactory = IniFactory(inifile) diff -r 8ffddc58dc81 -r b98cc94ffcfa tests/test_ini.txt --- /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