@@ -28,15 +28,15 @@ def assert_foo_and_bar_rendered(self, rendered):
2828 r'<div class="foo" style="margin: 10px 15px 20px 25px">'
2929 r'\s+This is the "foo" div.\s+'
3030 r'<\/div>' )
31- self .assertRegexpMatches (
31+ self .assertRegex (
3232 rendered ,
3333 foo_div_regex )
3434
3535 bar_div_regex = (
3636 r'<div class="bar" style="padding: 10px 15px 20px 25px">'
3737 r'\s+This is the "bar" div.\s+'
3838 r'<\/div>' )
39- self .assertRegexpMatches (
39+ self .assertRegex (
4040 rendered ,
4141 bar_div_regex )
4242
@@ -120,10 +120,10 @@ def test_unicode_context_variables(self):
120120
121121 rendered = template .render ({
122122 'unicode_string' : u'I love playing with my pi\xf1 ata' })
123- self .assertRegexpMatches (
123+ self .assertRegex (
124124 rendered ,
125125 '<div class="bar" style="padding: 10px 15px 20px 25px">' )
126- self .assertRegexpMatches (
126+ self .assertRegex (
127127 rendered ,
128128 u'I love playing with my pi\xf1 ata' )
129129
@@ -139,13 +139,13 @@ def test_comments_are_ignored(self):
139139 template = get_template ('comments_are_ignored.html' )
140140
141141 rendered = template .render ({})
142- self .assertRegexpMatches (
142+ self .assertRegex (
143143 rendered ,
144144 r'<body>\s+<!-- Here is comment one -->\s+<div' )
145- self .assertRegexpMatches (
145+ self .assertRegex (
146146 rendered ,
147147 r'This is the "foo" div.\s+<!-- comment two -->\s+' )
148- self .assertRegexpMatches (
148+ self .assertRegex (
149149 rendered ,
150150 r'This is the "bar" div.\s+<!-- comment three -->\s+' )
151151
0 commit comments