Changeset 44 for trunk/airspeed_test.py

Show
Ignore:
Timestamp:
05/03/05 18:11:39 (7 years ago)
Author:
steve
Message:

integrated unicode support patch #3 from Andreas Klöckner

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/airspeed_test.py

    r43 r44  
    11#!/usr/bin/env python 
     2# -*- coding: latin1 -*- 
    23 
    34from unittest import TestCase, main 
     
    439440        value = template.merge({'obj': C(), 'param':'bat'}) 
    440441        self.assertEquals('monkey', value) 
     442 
     443    def test_preserves_unicode_strings(self): 
     444        template = airspeed.Template('$value') 
     445        value = unicode('Grüße', 'latin1') 
     446        self.assertEquals(value, template.merge(locals())) 
     447 
    441448 
    442449#