@@ -120,24 +120,26 @@ def test_replace_formatters_python(self):
120120 self .assertEqual (replace_formatters ('%(sth)s' , 'python' ), 'sth' )
121121 self .assertEqual (replace_formatters ('%(sth)02f' , 'python' ), 'sth' )
122122 # str.format()
123- conditions = [
124- (
125- 'First, thou shalt count to {0}' , 'First, thou shalt count to ' ,
126- 'References first positional argument' ),
127- (
128- 'Bring me a {}' , 'Bring me a ' ,
129- 'Implicitly references the first positional argument' ),
130- ('From {} to {}' , 'From to ' , 'Same as "From {0} to {1}"' ),
131- (
132- 'My quest is {name}' , 'My quest is ' ,
133- 'References keyword argument \' name\' ' ),
134- (
135- 'Weight in tons {0.weight}' , 'Weight in tons ' ,
136- '\' weight\' attribute of first positional arg' ),
137- (
138- 'Units destroyed: {players[0]}' , 'Units destroyed: ' ,
139- 'First element of keyword argument \' players\' .' ),
140- ]
123+ conditions = (
124+ ('First, thou shalt count to {0}' ,
125+ 'First, thou shalt count to ' ,
126+ 'References first positional argument' ),
127+ ('Bring me a {}' ,
128+ 'Bring me a ' ,
129+ 'Implicitly references the first positional argument' ),
130+ ('From {} to {}' ,
131+ 'From to ' ,
132+ 'Same as "From {0} to {1}"' ),
133+ ('My quest is {name}' ,
134+ 'My quest is ' ,
135+ 'References keyword argument \' name\' ' ),
136+ ('Weight in tons {0.weight}' ,
137+ 'Weight in tons ' ,
138+ '\' weight\' attribute of first positional arg' ),
139+ ('Units destroyed: {players[0]}' ,
140+ 'Units destroyed: ' ,
141+ 'First element of keyword argument \' players\' .' ),
142+ )
141143 for condition in conditions :
142144 self .assertEqual (
143145 replace_formatters (condition [0 ], 'python' ),
0 commit comments