Created
June 26, 2009 19:03
-
-
Save rtyler/136672 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Lolwut(unittest.TestCase): | |
| def test_Fail(self): | |
| template = ''' | |
| #set $title = $title.split('|')[0] | |
| This is my title: $title | |
| ''' | |
| template = Cheetah.Template.Template.compile(template) | |
| template = template(namespaces={'title' : 'Thing | Other'}).respond() | |
| print template |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment