Changeset 12 for trunk/airspeed_test.py

Show
Ignore:
Timestamp:
12/08/04 15:17:03 (8 years ago)
Author:
steve
Message:

single and multi-line comments

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore set to
      *.pyc
  • trunk/airspeed_test.py

    r11 r12  
    131131        self.assertEquals("Steve", template.merge({})) 
    132132 
     133    def test_single_line_comments_skipped(self): 
     134        template = airspeed.Template('## comment\nStuff\nMore stuff## more comments $blah') 
     135        self.assertEquals("Stuff\nMore stuff", template.merge({})) 
     136 
     137    def test_multi_line_comments_skipped(self): 
     138        template = airspeed.Template('Stuff#*\n more comments *#\n and more stuff') 
     139        self.assertEquals("Stuff and more stuff", template.merge({})) 
    133140 
    134141if __name__ == '__main__':