33
44"""Tests of template inheritance for django_coverage_plugin."""
55
6- import os .path
7-
86from .plugin_test import DjangoPluginTestCase , django_stop_before
97
108
@@ -170,13 +168,7 @@ def test_ssi_unparsed(self):
170168 text = self .run_django_coverage (name = "outer.html" , context = {'a' : 17 })
171169 self .assertEqual (text , "First\n Inside {{ a }}\n Job\n \n Last\n " )
172170 self .assert_analysis ([1 , 2 , 3 ], name = "outer.html" )
173- self .assertEqual (
174- set (self .measured_files ()),
175- set ([
176- os .path .join ("templates" , "outer.html" ),
177- os .path .join ("templates" , "nested.html" ),
178- ])
179- )
171+ self .assert_measured_files ("outer.html" , "nested.html" )
180172
181173 def test_ssi_parsed (self ):
182174 nested = self .make_template (name = "nested.html" , text = """\
@@ -193,10 +185,4 @@ def test_ssi_parsed(self):
193185 text = self .run_django_coverage (name = "outer.html" , context = {'a' : 17 })
194186 self .assertEqual (text , "First\n Inside 17\n Job\n \n Last\n " )
195187 self .assert_analysis ([1 , 2 , 3 ], name = "outer.html" )
196- self .assertEqual (
197- set (self .measured_files ()),
198- set ([
199- os .path .join ("templates" , "outer.html" ),
200- os .path .join ("templates" , "nested.html" ),
201- ])
202- )
188+ self .assert_measured_files ("outer.html" , "nested.html" )
0 commit comments