[Python-checkins] r78075 - python/trunk/Lib/test/test_pep292.py
georg.brandl
python-checkins at python.org
Sun Feb 7 13:16:12 CET 2010
Author: georg.brandl
Date: Sun Feb 7 13:16:12 2010
New Revision: 78075
Log:
Fix another duplicated test method.
Modified:
python/trunk/Lib/test/test_pep292.py
Modified: python/trunk/Lib/test/test_pep292.py
==============================================================================
--- python/trunk/Lib/test/test_pep292.py (original)
+++ python/trunk/Lib/test/test_pep292.py Sun Feb 7 13:16:12 2010
@@ -86,13 +86,6 @@
s = Template('$who likes $100')
raises(ValueError, s.substitute, dict(who='tim'))
- def test_delimiter_override(self):
- class PieDelims(Template):
- delimiter = '@'
- s = PieDelims('@who likes to eat a bag of @{what} worth $100')
- self.assertEqual(s.substitute(dict(who='tim', what='ham')),
- 'tim likes to eat a bag of ham worth $100')
-
def test_idpattern_override(self):
class PathPattern(Template):
idpattern = r'[_a-z][._a-z0-9]*'
@@ -183,6 +176,12 @@
raises(ValueError, s.substitute, dict(gift='bud', who='you'))
eq(s.safe_substitute(), 'this &gift is for &{who} &')
+ class PieDelims(Template):
+ delimiter = '@'
+ s = PieDelims('@who likes to eat a bag of @{what} worth $100')
+ self.assertEqual(s.substitute(dict(who='tim', what='ham')),
+ 'tim likes to eat a bag of ham worth $100')
+
def test_main():
from test import test_support
More information about the Python-checkins
mailing list