I switched from TS 1.2.2 (an older version) to 0.8.1 (a newer version). My 
tiny test suite now fails:

        FAIL
        ----------------------------------------------------------------------
        Traceback (most recent call last):
          File "test.py", line 23, in checkCases
            assert plate.results()==output, 'Failed\n\tinput = %r\n\toutput = 
%r\n\tresults = %r\n' % (input, output, results)
        AssertionError: Failed
                input = '$a and $b'
                output = '1 and 2'
                results = '$a and 2'
        
        ======================================================================

For some reason, TS is not picking up the first $variable.


This can be recreated at the interactive prompt:

 >>> from TemplateServer.Server import Server as TS
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: cannot import name Server
 >>> from TemplateServer.Server import TemplateServer as TS
 >>> d = {'a': 1}
 >>> print TS('$a', d)
$a



-Chuck


_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to