Changeset 4336:b333a7c23883 in livinglogic.python.xist

Show
Ignore:
Timestamp:
02/14/11 16:30:09 (8 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix strip tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • test/test_ul4.py

    r4335 r4336  
    13591359def test_method_strip(): 
    13601360    for r in all_renderers: 
    1361         yield eq, "gurk", r(r"<?print ' \t\r\ngurk \t\r\n'.strip()?>") 
    1362         yield eq, "gurk", r(r"<?print 'xyzzygurkxyzzy'.strip('xyz')?>") 
     1361        yield eq, "gurk", r(r"<?print obj.strip()?>", obj=' \t\r\ngurk \t\r\n') 
     1362        yield eq, "gurk", r(r"<?print obj.strip('xyz')?>", obj='xyzzygurkxyzzy') 
    13631363 
    13641364 
    13651365def test_method_lstrip(): 
    13661366    for r in all_renderers: 
    1367         yield eq, "gurk \t\r\n", r("<?print obj.lstrip()", obj=" \t\r\ngurk \t\r\n") 
     1367        yield eq, "gurk \t\r\n", r("<?print obj.lstrip()?>", obj=" \t\r\ngurk \t\r\n") 
    13681368        yield eq, "gurkxyzzy", r("<?print obj.lstrip(arg)?>", obj="xyzzygurkxyzzy", arg="xyz") 
    13691369