Skip to content

Commit

Permalink
Added simple string test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Apr 28, 2001
1 parent bb1fa79 commit 5186cca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/testDTML.py
Expand Up @@ -85,8 +85,8 @@
"""Document Template Tests
"""

__rcs_id__='$Id: testDTML.py,v 1.2 2001/04/27 20:27:40 shane Exp $'
__version__='$Revision: 1.2 $'[11:-2]
__rcs_id__='$Id: testDTML.py,v 1.3 2001/04/28 07:05:44 chrism Exp $'
__version__='$Revision: 1.3 $'[11:-2]

import sys, os
import unittest
Expand Down Expand Up @@ -274,6 +274,12 @@ def checkDTMLDateFormatting(self):
expected = 'Christmas day is 1995/12/25'
assert res == expected, res

def checkSimpleString(self):
dt = String('%(name)s')
res = dt(name='Chris')
expected = 'Chris'
assert res == expected, res

def checkStringDateFormatting(self):
import DateTime
html = String("%(name capitalize spacify)s is "
Expand Down

0 comments on commit 5186cca

Please sign in to comment.